Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!DOCTYPE html>
2 <!-- form with one invalid element which is made invalid dynamically -->
3 <html class='reftest-wait'>
4 <head>
5 <style>
6 form:invalid { display: none; }
7 :-moz-ui-invalid { box-shadow: none; }
8 </style>
9 </head>
10 <script>
11 function onloadHandler()
12 {
13 document.getElementById('i').value = '';
14 document.documentElement.className = '';
15 }
16 </script>
17 <body onload='onloadHandler();'>
18 <form>
19 <input id='i' value='foo' required>
20 </form>
21 </body>
22 </html>