Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /accessibility/crashtests/aria-owns-with-role-change.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<!-- Test that setting the role an an aria-owns element does not crash. -->
<script>
document.addEventListener("DOMContentLoaded", () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById('owner').role = 'tab';
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.documentElement.className = '';
});
});
});
});
});
</script>
</head>
<body>
<main>
<fieldset id='owner' aria-owns="paragraph1">
<div>
<p id="paragraph1">
<mark>
Child
</mark>
</p>
</div>
</fieldset>
</main>
</body>
</html>