Skip to content

Commit d1e74b4

Browse files
author
Luke Wright
committed
Fixed squizlabs#121 in SC 1.3.1.
Shouldn't be using for(in) for arrays, as splitting of strings becomes.
1 parent 0a08e8a commit d1e74b4

File tree

1 file changed

+1
-1
lines changed
  • Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3

1 file changed

+1
-1
lines changed

Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ var HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1 = {
253253
var ok = true;
254254

255255
// First check that all of the IDs (space separated) are present and correct.
256-
for (x in labelledByIds) {
256+
for (var x = 0; x < labelledByIds.length; x++) {
257257
var labelledByElement = element.ownerDocument.querySelector('#' + labelledByIds[x]);
258258
if (!labelledByElement) {
259259
HTMLCS.addMessage(

0 commit comments

Comments
 (0)