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

content / test / data / accessibility / event / aria-atomic-changed2.html [blame]

<!--
@UIA-WIN-DENY:*
@UIA-WIN-ALLOW:AriaProperties*
-->
<!DOCTYPE html>
<html>
<body>
  <div id="d1" tabindex='0' aria-label="Item1" aria-live="polite">Item1</div>
  <div id="d2">Item2</div>
  <script>
    var go_passes = [
      // Set aria-atomic from default false->false; should not fire an event.
      () => document.getElementById('d1').setAttribute('aria-atomic', false),

      // Set aria-atomic from false->true on a non-live region;
      // should not fire an event.
      () => document.getElementById('d2').setAttribute('aria-atomic', true),
    ];
    let current_pass = 0;
    function go() {
      go_passes[current_pass++].call();
      return current_pass < go_passes.length;
    }
  </script>
</body>
</html>