https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 5fcb0911d2a04efa14701cc30649d2a70b7a2679 authored by ffxbld on 11 September 2014, 03:17:12 UTC
Added FIREFOX_32_0_1_RELEASE FIREFOX_32_0_1_BUILD1 tag(s) for changeset 07671dc64b94. DONTBUILD CLOSED TREE a=release
Tip revision: 5fcb091
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