https://github.com/mozilla/gecko-dev
Raw File
Tip revision: fbb3fab838938af483547e83c6c33c1459f2fd4f authored by ffxbld on 14 May 2015, 17:23:39 UTC
Added FIREFOX_38_0_1esr_RELEASE FIREFOX_38_0_1esr_BUILD2 tag(s) for changeset d0fb637e6902. DONTBUILD CLOSED TREE a=release
Tip revision: fbb3fab
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