This autocomplete attribute is a way of specifying what should be filled where. Because almost no one has used these things, it’s distressingly difficult to get the extensions to not autofill things in particular fields, but it is useful for instructing what should go where, e.g. autocomplete="cc-exp-year" for credit card expiry year.
Other particularly useful values that I like: current-password, new-password, one-time-code.
1 comment
[ 3.4 ms ] story [ 20.1 ms ] threadThis autocomplete attribute is a way of specifying what should be filled where. Because almost no one has used these things, it’s distressingly difficult to get the extensions to not autofill things in particular fields, but it is useful for instructing what should go where, e.g. autocomplete="cc-exp-year" for credit card expiry year.
Other particularly useful values that I like: current-password, new-password, one-time-code.
The HTML spec is also good reading on this topic: https://html.spec.whatwg.org/multipage/form-control-infrastr...