tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

input-type-invalid.html (662B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <!-- Test: if an input has a custom error when barred from constraint
      4             validation then move a type candidate for constraint validation,
      5             it should not be affected by :valid pseudo-class. -->
      6  <link rel='stylesheet' type='text/css' href='style.css'>
      7  <script>
      8    function doTest()
      9    {
     10      var i = document.getElementById('i');
     11      i.setCustomValidity('foo');
     12      i.type = 'text';
     13      document.documentElement.className='';
     14    }
     15    document.addEventListener("MozReftestInvalidate", doTest);
     16  </script>
     17  <body>
     18    <input class='invalid' type='button' id='i'>
     19  </body>
     20 </html>