1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29

content / test / data / accessibility / event / aria-hidden-descendants-already-ignored.html [blame]

<!--
@WIN-DENY:IA2_EVENT_TEXT_INSERTED*
@WIN-DENY:IA2_EVENT_TEXT_REMOVED*
@WIN-DENY:EVENT_OBJECT_REORDER*
@UIA-WIN-DENY:AriaProperties*
@UIA-WIN-DENY:StructureChanged/ChildrenReordered*
-->
<html>
<body>
<!-- Hide events only need to occur on the root of what's shown/hidden,
     not for each descendant, with some descendants already ignored. -->
<div role="toolbar">
  <div id="heading-root" role="heading" aria-label="Heading" class="a">
    <div> <!-- already ignored-->
      <div> <!-- already ignored -->
        <div id="heading-child">
          <div id="heading-grandchild"></div>
        </div>
      </div>
    </div>
  </div>
</div>
<script>
  function go() {
    document.querySelector('.a').setAttribute("aria-hidden", "true");
  }
</script>
</body>
</html>