summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/computed-accessible-text-node.html
blob: 29b7c2b2fe2d64ecb43ce1b0e1037a82431442e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html class="test-wait">
<img id="img1">text
<script>
async function trigger1() {
  let img = document.getElementById('img1');
  let computed_accessible_node = await self.getComputedAccessibleNode(img);
  // The next sibling is a text node.
  let next_sibling = computed_accessible_node.nextSibling;
  await next_sibling.ensureUpToDate();
  document.documentElement.className = '';
}
trigger1();
</script>
</html>