Bug 1934520 - [devtools] Avoid errors in document-events webconsole listeners for...
[gecko.git] / layout / reftests / css-optional / css-optional-dyn-2.html
blob746e045abf4655c9f6e9be107cab9d32e6270d62
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <!-- Test: Add the required attribute to an element to make it required. -->
4 <link rel='stylesheet' type='text/css' href='css-optional-style.css'>
6 <script type="text/javascript">
7 function addRequired()
9 document.getElementById('i').required = true;
11 function disableReftestWait()
13 document.documentElement.className = '';
15 </script>
17 <body onload="addRequired(); disableReftestWait();">
18 <input id="i">
19 </body>
20 </html>