blob: 3e148ae981f1f2bf3fe7f3f4fe824802edc94f58 (
plain)
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
30
31
32
33
34
|
<!DOCTYPE html>
<html class="test-wait">
<!-- Test that setting aria-owns from an aria-hidden subtree does not crash -->
<script>
document.addEventListener("DOMContentLoaded", () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById('owner').removeAttribute('aria-owns');
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.documentElement.className = '';
});
});
});
});
});
</script>
</head>
<body>
<main aria-hidden="true">
<fieldset id='owner' aria-owns="paragraph1">
Text
</fieldset>
</main>
<div role="complementary" aria-label="Natural parent">
<p id="paragraph1">
<mark>
Child
</mark>
</p>
</div>
</body>
</html>
|