Skip to content

Commit 9bf2870

Browse files
Marcy Suttonmarcysutton
authored andcommitted
fix: get virtualNode with getNodeFromTree
1 parent 71a97ac commit 9bf2870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checks/aria/required-children.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function ariaOwns(nodes, role) {
2222

2323
for (index = 0, length = nodes.length; index < length; index++) {
2424
if (nodes[index] === null) { continue; }
25-
let virtualTree = axe.utils.getFlattenedTree(nodes[index]);
25+
let virtualTree = axe.utils.getNodeFromTree(axe._tree[0], nodes[index]);
2626
if (owns(nodes[index], virtualTree, role, true)) {
2727
return true;
2828
}

0 commit comments

Comments
 (0)