Skip to content

Commit

Permalink
refactor(duplicate-img-label-evaluate): work with virtualNodes (#2506)
Browse files Browse the repository at this point in the history
refactor(duplicate-img-label-evaluate): work with virtualNodes

Closes issue #2472
  • Loading branch information
anuk79 authored and straker committed Sep 8, 2020
1 parent 8455a7f commit 007c35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checks/label/duplicate-img-label-evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { visibleVirtual, accessibleTextVirtual } from '../../commons/text';
import { closest } from '../../core/utils';

function duplicateImgLabelEvaluate(node, options, virtualNode) {
if (['none', 'presentation'].includes(getRole(node))) {
if (['none', 'presentation'].includes(getRole(virtualNode))) {
return false;
}
const parentVNode = closest(virtualNode, options.parentSelector);
Expand Down

0 comments on commit 007c35a

Please sign in to comment.