Skip to content

Commit e208dab

Browse files
authored
Merge pull request #57 from browserstack/AXE-197_Autocomplete_Valid
fix: (AXE-197) excluded select and textarea components
2 parents 5354bd0 + cb1b38a commit e208dab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/checks/forms/autocomplete-a11y-evaluate.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ function checkIsElementValidAutocomplete(node, options, virtualNode) {
88
return true;
99
}
1010

11+
const nodename = node.nodeName.toLowerCase();
12+
if (!autocomplete && (nodename === 'select' || nodename === 'textarea')) {
13+
return true;
14+
}
15+
1116
// if it is on then we check whether name / id have valid autocomplete value or not
1217
// same for the case if autocomplete is not present or has a non-standard value
1318
if (

0 commit comments

Comments
 (0)