We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aee9e1e + 349aa46 commit 7a8c685Copy full SHA for 7a8c685
1 file changed
Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1.js
@@ -130,7 +130,7 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1 = {
130
this._labelNames = {};
131
var labels = top.getElementsByTagName('label');
132
for (var i = 0; i < labels.length; i++) {
133
- if ((labels[i].getAttribute('for') !== null) || (labels[i].getAttribute('for') !== '')) {
+ if ((labels[i].getAttribute('for') !== null) && (labels[i].getAttribute('for') !== '')) {
134
var labelFor = labels[i].getAttribute('for');
135
if ((this._labelNames[labelFor]) && (this._labelNames[labelFor] !== null)) {
136
this._labelNames[labelFor] = null;
0 commit comments