https://github.com/mozilla/gecko-dev
Raw File
Tip revision: d746e590f3aab108ea18c32f3ae3a4032da54c67 authored by ffxbld on 07 August 2015, 15:47:50 UTC
Added FIREFOX_40_0_RELEASE FIREFOX_40_0_BUILD5 tag(s) for changeset 84e0a4087157. DONTBUILD CLOSED TREE a=release
Tip revision: d746e59
button-dyn-not-disabled.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if button 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('b');
      e.setCustomValidity('foo');
      e.removeAttribute('disabled');
      document.documentElement.className='';
    }
  </script>
  <body onload="onLoadHandler();">
    <button class='invalid' id='b' disabled></button>
  </body>
</html>
back to top