https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 806d68f665662998eb426c8c7de83ed48e510df9 authored by ffxbld on 26 March 2015, 00:28:53 UTC
Added FENNEC_37_0_RELEASE FENNEC_37_0_BUILD1 tag(s) for changeset 72d7284d20ec. DONTBUILD CLOSED TREE a=release
Tip revision: 806d68f
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