https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 3d619309c8d39ce22d8d411fefec2a4e99561578 authored by ffxbld on 28 May 2015, 08:47:19 UTC
Added FENNEC_38_0_5_RELEASE FENNEC_38_0_5_BUILD1 tag(s) for changeset 271bc6fc4c43. DONTBUILD CLOSED TREE a=release
Tip revision: 3d61930
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