summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/aria-owned-with-role-change.html
blob: c5b2130969c018dce682e2d1a404570f5c26f4e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html class="test-wait">
<!-- Test that setting the role an an aria-owns child does not crash. -->
<script>
document.addEventListener("DOMContentLoaded", () => {
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      document.getElementById('paragraph1').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>