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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <!-- form 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       form:invalid { display: none; }
     8     </style>
     9   </head>
    10   <script>
    11     function onloadHandler()
    12     {
    13       document.forms[0].removeChild(document.getElementById('j'));
    14       document.documentElement.className = '';
    15     }
    16   </script>
    17   <body onload='onloadHandler();'>
    18     <form>
    19       <input id='i' value='foo'required>
    20       <input id='j' value='bar' readonly>
    21     </form>
    22   </body>
    23 </html>

mercurial