https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 6f8cdf316a5ae7c9e89b354cb80dfdeb59071bb3 authored by ffxbld on 06 August 2015, 22:32:51 UTC
Added FIREFOX_40_0_RELEASE FIREFOX_40_0_BUILD4 tag(s) for changeset d2561e900801. DONTBUILD CLOSED TREE a=release
Tip revision: 6f8cdf3
input-type-invalid.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if an input 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 doTest()
    {
      var i = document.getElementById('i');
      i.setCustomValidity('foo');
      i.type = 'text';
      document.documentElement.className='';
    }
    document.addEventListener("MozReftestInvalidate", doTest, false);
  </script>
  <body>
    <input class='invalid' type='button' id='i'>
  </body>
</html>
back to top