Skip to content

Commit 4925f28

Browse files
Update Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_5.js
Co-Authored-By: Anthony Barnes <abarnes@squiz.com.au>
1 parent 61ad273 commit 4925f28

File tree

1 file changed

+3
-0
lines changed
  • Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_5 = {
9696
];
9797

9898
var valuesStr = element.getAttribute("autocomplete");
99+
if (typeof valuesStr !== 'string') {
100+
return;
101+
}
99102
var values = valuesStr.split(" ");
100103

101104
var hasFaultyValue = false;

0 commit comments

Comments
 (0)