https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 181ce3f9c41093c8b73af00e77c0dd6432c8d79d authored by ffxbld on 29 October 2015, 09:38:35 UTC
Added FENNEC_42_0_RELEASE FENNEC_42_0_BUILD3 tag(s) for changeset 34182086e962. DONTBUILD CLOSED TREE a=release
Tip revision: 181ce3f
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