layout/reftests/css-invalid/fieldset/fieldset-valid-and-barred-remove-barred.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE html>
     2 <!-- fieldset with one valid element and a barred for constraint
     3 validation element then you remove the second element -->
     4 <html class='reftest-wait'>
     5   <head>
     6     <style>
     7       fieldset:valid { display: none; }
     8     </style>
     9   </head>
    10   <script>
    11     function onloadHandler()
    12     {
    13       document.getElementById("fieldset").removeChild(document.getElementById('j'));
    14       document.documentElement.className = '';
    15     }
    16   </script>
    17   <body onload='onloadHandler();'>
    18     <fieldset id="fieldset">
    19       <input id='i' value='foo' required>
    20       <input id='j' value='bar' readonly>
    21     </fieldset>
    22   </body>
    23 </html>

mercurial