https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 18d2e853f6455b2c36a3c12a44c6ec85c64263ec authored by Ben Hearsum on 11 October 2012, 15:31:21 UTC
a=bustage/akeybl
Tip revision: 18d2e85
textarea-dyn-not-disabled.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if textarea is not disabled and invalid, it is candidate for
             constraint validation and should be affected
             by :invalid pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function onLoadHandler()
    {
      var e = document.getElementById('t');
      e.setCustomValidity('foo');
      e.removeAttribute('disabled');
      document.documentElement.className='';
    }
  </script>
  <body onload="onLoadHandler();">
    <textarea class='invalid' id='t' disabled></textarea>
  </body>
</html>
back to top