Skip to content

Commit

Permalink
Allow computed accessible nodes to be backed by text nodes
Browse files Browse the repository at this point in the history
Fix a crash by allowing computed accessible nodes to be backed by a
Node*, rather than requiring an Element*.
See AOM issue WICG/aom#185

Bug: 792783,1274837,1245437
Change-Id: Ib5f5ff558a1a848797adc79aac43deb31fd414dd
  • Loading branch information
aleventhal authored and chromium-wpt-export-bot committed Nov 30, 2021
1 parent ad30713 commit 8192b3c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions accessibility/crashtests/computed-accessible-node.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<html class="test-wait">
<img id="img1">text
<script>
async function trigger1() {
var img = document.getElementById('img1');
var computed_accessible_node = await self.getComputedAccessibleNode(img);
var next_sibling = computed_accessible_node.nextSibling;
await next_sibling.ensureUpToDate();
document.documentElement.className = '';
}
trigger1();
</script>
</html>

0 comments on commit 8192b3c

Please sign in to comment.