Skip to content

Commit

Permalink
AXE-197 : excluded select and textarea components
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooja0504 committed Jun 24, 2024
1 parent 66bfaec commit c2dfe46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/checks/forms/autocomplete-a11y-evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ function checkIsElementValidAutocomplete(node, options, virtualNode) {
return true;
}

const nodename = node.nodeName.toLowerCase();
if (!autocomplete && (nodename === 'select' || nodename === 'textarea')) {
return true;
}

// if it is on then we check whether name / id have valid autocomplete value or not
// same for the case if autocomplete is not present or has a non-standard value
if (
Expand Down

0 comments on commit c2dfe46

Please sign in to comment.