1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
content / test / data / accessibility / aria / aria-owns-with-role-change.html [blame]
<!--
@WAIT-FOR:done
@AURALINUX-ALLOW:xml-roles*
@WIN-ALLOW:xml-roles*
@MAC-ALLOW:AXRoleDescription*
@UIA-WIN-ALLOW:LocalizedControlType*
-->
<div id="owner" role="doc-glossary" aria-owns="owned" aria-label="Stuff">
Text
</div>
<div id="owned" role="button">Button</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
setTimeout(() => {
document.getElementById('owner').role = 'doc-toc';
document.getElementById('owner').role = 'region';
document.title = 'done';
}, 50);
});
</script>