https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 1616edc376e8da07ccd4a6dcb838dede50a08bf3 authored by B2G Bumper Bot on 28 October 2015, 10:34:49 UTC
Bumping manifests a=b2g-bump
Tip revision: 1616edc
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