We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30f085 commit c064710Copy full SHA for c064710
Standards/WCAG2AAA/Sniffs/Principle2/Guideline2_5/2_5_3.js
@@ -61,7 +61,9 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_5_2_5_3 = {
61
} else {
62
var refNode = top.getElementById(labelFor);
63
}
64
- accessibleName = HTMLCS.util.getAccessibleName(refNode, top);
+ if (refNode) {
65
+ accessibleName = HTMLCS.util.getAccessibleName(refNode, top);
66
+ }
67
68
break;
69
case "input":
0 commit comments