https://github.com/mozilla/gecko-dev
Raw File
Tip revision: a570069dd8ba1cdfb6e5de2e89979529cb30f747 authored by ffxbld on 02 September 2016, 12:19:31 UTC
Added FENNEC_48_0_3_RELEASE FENNEC_48_0_3_BUILD1 tag(s) for changeset f182cf5849c5. DONTBUILD CLOSED TREE a=release
Tip revision: a570069
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