https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 41b2a541f6dca5df6dd71241ccd4f5b09fb4421e authored by ffxbld on 26 July 2016, 20:27:39 UTC
Added FENNEC_48_0_RELEASE FENNEC_48_0_BUILD1 tag(s) for changeset fde5416cb28f. DONTBUILD CLOSED TREE a=release
Tip revision: 41b2a54
button-type-invalid.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if a button has a custom error when barred from constraint
             validation then move a type candidate for constraint validation,
             it should not be affected by :valid pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function onLoadHandler()
    {
      var b = document.getElementById('b');
      b.setCustomValidity('foo');
      b.type = 'submit';
      document.documentElement.className='';
    }
  </script>
  <body onload="onLoadHandler();">
    <button class='notvalid' type='button' id='b'></button>
  </body>
</html>
back to top