Closed Slayer95 closed 2 years ago
This is already specified in the HTML Standard:
A user agent may allow the user to override an element's autofill field name, e.g. to change it from "off" to "on" to allow values to be remembered and prefilled despite the page author's objections, or to always "off", never remembering values.
More specifically, user agents may in particular consider replacing the autofill field name of form controls that match the description given in the first column of the following table, when their autofill field name is either "on" or "off", with the value given in the second cell of that row.
[... a table showing how to heuristically derive username/password autofill ...]
Most browsers disallow turning autocomplete off in one context or another, with the notorious case of Chrome always ignoring it.