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
content / test / data / accessibility / regression / aria-owns-reparent-above-other-change-crash.html [blame]
<!--
@WAIT-FOR:done
-->
<main>
<div role="treeitem" id="root">
<div role="group" id="container"></div>
<div role="treeitem" id="child">
<p id="inner">
<mark>
cats
</mark>
</p>
</div>
</div>
</main>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Force the first serialization.
requestAnimationFrame(() => {
requestAnimationFrame(() => {
// Mark the descendant dirty.
document.querySelector('mark').ariaLive = 'polite';
// Causing a reparenting on an ancestor of the change.
document.querySelector('#container').setAttribute('aria-owns', 'child');
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.title = 'done';
});
});
});
});
});
</script>