https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 46f5468208a4908c41c00558853b9bf36b4dc874 authored by ffxbld on 02 March 2017, 15:17:41 UTC
Added FENNEC_52_0_RELEASE FENNEC_52_0_BUILD1 tag(s) for changeset 8fad70c31a1c. DONTBUILD CLOSED TREE a=release
Tip revision: 46f5468
button-disabled-fieldset-2.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if button has a disabled fieldset ancestor, it is barred from
             constraint validation and should not 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');
      var fieldsets = document.getElementsByTagName("fieldset");
      fieldsets[1].disabled = true;
      fieldsets[0].disabled = false;
      document.documentElement.className='';
    }
  </script>
  <body onload="onloadHandler();">
    <fieldset disabled>
      <fieldset>
        <button class='notinvalid' id='b'></button>
      </fieldset>
    </fieldset>
  </body>
</html>
back to top