tor-browser

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

button-type-barred.html (708B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <!-- Test: if a button has is candidate for constraint validation then change
      4             its type to be barred from constraint validation, it should not be
      5             affected by :invalid 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 = 'button';
     13      document.documentElement.className='';
     14    }
     15  </script>
     16  <body onload="document.getElementById('b').type='button'; document.documentElement.className='';">
     17    <button class='notinvalid' type='submit' id='b'></button>
     18  </body>
     19 </html>