Skip to content

Commit

Permalink
fix: get virtualNode with getNodeFromTree
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton authored and marcysutton committed Jul 19, 2017
1 parent 71a97ac commit 9bf2870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checks/aria/required-children.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ariaOwns(nodes, role) {

for (index = 0, length = nodes.length; index < length; index++) {
if (nodes[index] === null) { continue; }
let virtualTree = axe.utils.getFlattenedTree(nodes[index]);
let virtualTree = axe.utils.getNodeFromTree(axe._tree[0], nodes[index]);
if (owns(nodes[index], virtualTree, role, true)) {
return true;
}
Expand Down

0 comments on commit 9bf2870

Please sign in to comment.