<!--
@UIA-WIN-DENY:*
@UIA-WIN-ALLOW:AriaProperties*
-->
<!DOCTYPE html>
<html>
<body>
<div id="d1" tabindex='0' aria-label="Item1" aria-live="polite" aria-atomic="true">Item1</div>
<div id="d2" tabindex='0' aria-label="Item2" aria-live="polite" aria-atomic="true">Item2</div>
<div id="d3" tabindex='0' aria-label="Item3" aria-live="polite">Item3</div>
<button onclick="go()">go</button>
<script>
var go_passes = [
// Set aria-atomic from true->false; should fire an event.
() => document.getElementById('d1').setAttribute('aria-atomic', false),
// Set aria-atomic from true->[removed]; should fire an event.
() => document.getElementById('d2').removeAttribute('aria-atomic'),
// Set aria-atomic from false->true; should fire an event.
() => document.getElementById('d3').setAttribute('aria-atomic', true),
];
let current_pass = 0;
function go() {
go_passes[current_pass++].call();
return current_pass < go_passes.length;
}
</script>
</body>
</html>