blob: fbf0aade1afed6d396ce75d76f6ed189a6894165 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!DOCTYPE html>
<!-- Changing ids and creating an aria-owns cycle with the new id doesn't crash -->
<script class="test-wait">
document.addEventListener("DOMContentLoaded", () => {
document.getElementById('will-be-div-child').id='div-child';
document.querySelector('div').setAttribute('aria-owns','div-child');
document.getElementById('div-child').setAttribute('aria-owns','cycle-owns');
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.documentElement.className = '';
});
});
});
</script>
<body>
<option>
<canvas id="cycle-owns">
<dialog id="will-be-div-child"></dialog>
</canvas>
</option>
<meter id="div-child"></meter>
<div></div>
</body>
|