News for hackers. Stuff that matters.
Re:Tradle by atombum on Thursday March 10, 2022 @04:23PM (#30632648)
I had to disable autocomplete recently, neither autocomplete="false" or autocomplete="off" worked. MDN (source below) indicates using "new-password, but in my experience passing in any random string to the autocomplete attribute did work.

https://developer.mozilla.org/en-US/docs/Web/Security/Securi...

Re:Tradle by joshstrange on Thursday March 10, 2022 @04:25PM (#30632676)
Yeah, I've taken to just generating a UUID and throwing in there as I normally have a library to do that on my frontend projects.
Re:Tradle by notatoad on Thursday March 10, 2022 @06:27PM (#30634043)
that only sort of sometimes works. chrome uses some sort of AI to look at the text displayed in a way that could visually be construed as a label and use that to identify the field for autocomplete.

the only foolproof method i've found is to use contenteditable spans instead of input tags, which has it whole own set of problems.