So like everyone else before me I am trying to disable chrome autofill.
This explained to me why autocomplete off does not work:
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. However, user agents should not allow users to trivially override the autofill field name from "off" to "on" or other values, as there are significant security implications for the user if all values are always remembered, regardless of the site's preferences.
This should be the solution:
In some case, the browser will keep suggesting autocompletion values even if the autocomplete attribute is set to off. This unexpected behavior can be quite puzzling for developers. The trick to really force the no-completion is to assign a random string to the attribute
Default behavior
This is expected.
Autocomplete off
This is also expected.
Autocomplete as random string
The autocomplete is different but I still see it and it is coming from chrome. (I disabled my extensions, only turning autofill off in chrome settings prevented the autocomplete from showing up)
Can anyone please explain what is happening and how do I finally get rid of it? π€―
EDIT:
In another input in the same form autocomplete="off"
works and autocomplete="radnomString!23123adf"
does not work. Setting autocomplete
attribute to the form
element didn't help. autocomplete="new-password"
also didn't help.