Re:“autocomplete=off is ignored on non-login input elements”
by zimpenfish on Thursday June 16, 2016 @12:39AM
(#11914024)
I might be missing something subtle or obvious but can't you just give the inputs different names? Is it such a trauma to handle that case in the backend? e.g.
<input name='admin-user'><input name='admin-pass'>?
(Now if Chrome is auto{fill,complet}ing those with usernames + passwords, that's definitely a disastrous bug.)
I have previously wasted so much time working around this browser behaviour.
The trick I use now is to add in a hidden (via CSS) pair on inputs earlier on the page, that do nothing. The browser fills those in, and leaves the real password admin fields empty.