Skip to content

Commit

Permalink
fix(autocomplete-valid): Allow custom autocomplete attribute values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maruthimohan authored Oct 21, 2021
1 parent 4584fa8 commit 6076ee8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
11 changes: 11 additions & 0 deletions lib/checks/forms/autocomplete-valid.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,16 @@
"pass": "the autocomplete attribute is correctly formatted",
"fail": "the autocomplete attribute is incorrectly formatted"
}
},
"options": {
"stateTerms": [
"none",
"false",
"true",
"disabled",
"enabled",
"undefined",
"null"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,12 @@
<input autocomplete="cc-exp-month" type="tel" id="pass80" />
<input autocomplete="cc-exp-year" type="tel" id="pass81" />
<input autocomplete="cc-csc" type="tel" id="pass82" />

<!-- Attribute values that contains synonyms of on/off -->
<input autocomplete="none" id="pass84" />
<input autocomplete="false" id="pass85" />
<input autocomplete="true" id="pass86" />
<input autocomplete="disabled" id="pass87" />
<input autocomplete="enabled" id="pass88" />
<input autocomplete="undefined" id="pass89" />
<input autocomplete="null" id="pass90" />
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
["#pass80"],
["#pass81"],
["#pass82"],
["#pass83"]
["#pass83"],
["#pass84"],
["#pass85"],
["#pass86"],
["#pass87"],
["#pass88"],
["#pass89"],
["#pass90"]
]
}

0 comments on commit 6076ee8

Please sign in to comment.