https://github.com/mozilla/gecko-dev
Raw File
Tip revision: efd7664ed592fde1c16034ce810e81dca4a49c81 authored by Ryan VanderMeulen on 29 July 2015, 14:04:25 UTC
Added tag B2G_2_1_END for changeset 41e10c6740be on a CLOSED TREE
Tip revision: efd7664
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