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
content / test / data / accessibility / aria / aria-hidden-focused-span.html [blame]
<!--
@BLINK-ALLOW:focus*
@BLINK-ALLOW:hidden*
@BLINK-ALLOW:class*
@EXECUTE-AND-WAIT-FOR:focusSpan()
-->
<!-- Focusing previously unincluded aria-hidden node adds it to the tree -->
<html>
<body>
<div class="hidden" aria-hidden="true">
<span>
<span class="takes-focus" tabindex="-1" role="group">
xyz
</span>
</span>
</div>
<script>
function focusSpan() {
document.querySelector(".takes-focus").focus();
document.title = "focus-changed";
return "focus-changed";
}
</script>
</body>
</html>