Skip to content

Commit

Permalink
fix: autocomplete street address (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy authored Nov 6, 2018
1 parent a9e0dff commit 27fce9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/checks/forms/autocomplete-appropriate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const allowedTypesMap = {
bday: ['text', 'search', 'date'],
email: ['text', 'search', 'email'],
'cc-exp': ['text', 'search', 'month'],
'street-address': [], // Not even the default
'street-address': ['text'], // Issue: https://github.com/dequelabs/axe-core/issues/1161
tel: ['text', 'search', 'tel'],
'cc-exp-month': number,
'cc-exp-year': number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@
<input autocomplete="off" id="pass64" name="input_1" placeholder="Numeric Input Field" value="42" type="tel">
<input autocomplete="on" id="pass65" value="" type="url">
<input autocomplete="off" id="pass66" value="42" type="datetime-local">

<input autocomplete="street-address" id="pass67" type="text" />
<input autocomplete="street-address" id="fail6" type="file" />
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
["#fail2"],
["#fail3"],
["#fail4"],
["#fail5"]
["#fail5"],
["#fail6"]
],
"passes": [
["#pass1"],
Expand Down Expand Up @@ -74,6 +75,7 @@
["#pass63"],
["#pass64"],
["#pass65"],
["#pass66"]
["#pass66"],
["#pass67"]
]
}

0 comments on commit 27fce9d

Please sign in to comment.