https://github.com/mozilla/gecko-dev
Raw File
Tip revision: c0500f52f22bf97c83d9c60161c8b2cfa7016b88 authored by Ryan VanderMeulen on 27 February 2015, 18:00:36 UTC
Backed out changeset 5fb28d06581c (bug 1136855) for landing on the wrong branch.
Tip revision: c0500f5
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