https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 748537edb8a624ad424539427b14bc6ea103ee6f authored by ffxbld on 06 June 2012, 06:49:46 UTC
Added FENNEC_14_0b6_RELEASE FENNEC_14_0b6_BUILD1 tag(s) for changeset 7054a9e24f11. DONTBUILD CLOSED TREE a=release
Tip revision: 748537e
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 onLoadHandler()
    {
      var i = document.getElementById('i');
      i.setCustomValidity('foo');
      i.type = 'text';
      document.documentElement.className='';
    }
  </script>
  <body onload="onLoadHandler();">
    <input class='invalid' type='button' id='i'>
  </body>
</html>
back to top