summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/aria-owns-inside-map.html
blob: 10da915c4798450a63e5f48c3fa4ac1f7c386c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<!-- Test that aria-owns pointing into a map does not crash -->
<html class="test-wait">
<map >
  <a href=''>
    <del id='1' hidden></del>
    <del id='2'></del>
  </a>
</map>
<div></div>

<script>
document.addEventListener('DOMContentLoaded', () => {
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      document.querySelector('div').setAttribute('aria-owns','2 1');
      document.documentElement.className = '';
    });
  });
});
</script>
</html>