Support default autocomplete
values for input based on type
#4271
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
topic: forms
If I'm reading the autocomplete processing algorithm correctly, the "default" behavior (when the attribute is absent or empty) is to not have any default at all. There are suggested heuristics for
password
inputs (at the very end of that section), but little else.I would expect that for
<input>
elements where the validtype
attribute directly corresponds to a valid autocomplete token (aka, fortype="email"
,"tel"
,"url"
*), that the type would be used as the default autofill field name.The main benefit would be to reduce verbosity:
Could I skip typing "email" just once, please?
Since most browsers support heuristics for autocomplete, I suspect the resulting autofill behavior is already widely supported. It would be a matter of making it standard & exposed to the API.
* (But not for
type="image"
, since that's just its own weird legacy thing.)The text was updated successfully, but these errors were encountered: