tor-browser

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

button-type-invalid.html (645B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <!-- Test: if a button 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 onLoadHandler()
      9    {
     10      var b = document.getElementById('b');
     11      b.setCustomValidity('foo');
     12      b.type = 'submit';
     13      document.documentElement.className='';
     14    }
     15  </script>
     16  <body onload="onLoadHandler();">
     17    <button class='notvalid' type='button' id='b'></button>
     18  </body>
     19 </html>