https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 3c5c76a179dd899eec16ed8efb1306968985a764 authored by Benjamin Beurdouche on 15 December 2021, 16:53:05 UTC
Bug 1746221 - land NSS NSS_3_68_2_RTM UPGRADE_NSS_RELEASE, r+a=ryanvm
Tip revision: 3c5c76a
button-type-barred.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if a button has is candidate for constraint validation then change
             its type to be barred from constraint validation, it should not be
             affected by :invalid pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function onLoadHandler()
    {
      var b = document.getElementById('b');
      b.setCustomValidity('foo');
      b.type = 'button';
      document.documentElement.className='';
    }
  </script>
  <body onload="document.getElementById('b').type='button'; document.documentElement.className='';">
    <button class='notinvalid' type='submit' id='b'></button>
  </body>
</html>
back to top