Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!DOCTYPE html>
2 <!-- input in nested fieldset becomes barred -->
3 <html class='reftest-wait'>
4 <head>
5 <style>
6 fieldset:valid { background-color: green; }
7 fieldset:invalid { background-color: red; }
8 </style>
9 </head>
10 <script>
11 function onloadHandler()
12 {
13 document.getElementById('i').readOnly = true;
14 document.documentElement.className = '';
15 }
16 </script>
17 <body onload='onloadHandler();'>
18 <fieldset>
19 <fieldset>
20 <input id='i' required>
21 </fieldset>
22 </fieldset>
23 </body>
24 </html>