2 ms·
A password field does more than just mask input. At least on macOS, it's also a secure input field where the OS ensures no other applications can see what is en
by js2 9y ago
A password field does more than just mask input. At least on macOS, it's also a secure input field where the OS ensures no other applications can see what is entered. Simply masking the font will imply to the user that their input is secure, when in fact it is not.
- deckar01 9y agoThat is a good reason to keep using a password input. I should probably intercept the keypress events and show nothing so that the password never even reaches the DOM. Then I wouldn't have to worry about the input growing/wrapping.