Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!-- Test that aria-modal, aria-owns, aria-hidden, and aria-labelledby can work together without crashing.
This test case is a minimized version of a crash that occurred from a chat app. -->
<!DOCTYPE html>
<html class="test-wait">
<div role="main" aria-owns="owned"></div>
<div id="owned">
<span aria-hidden="true" id="hidden-label"></span>
<div role="dialog" aria-modal="true">
<a aria-labelledby="hidden-label"></a>
let dialogNode = null;
document.addEventListener('DOMContentLoaded', () => {
dialogNode = document.querySelector("[role=dialog]")
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.querySelector("[role=main]").setAttribute("aria-hidden", true);
document.documentElement.className = '';