Problem with HTML autocomplete on Android browser
I’ve just fixed very evil bug.
My web site works well on all the major browsers. But when I tested it on Android phone, using standard Android browser, I was surprised.. In some text fields or inputs, that browser sets my email. By the way, there’s nothing about email in the input name or id. Again, all the major desktop browsers don’t have this bug.
Despite on the setted value attribute for the input, Android browser’s autocomplete still sets its value. So, it even ignores the value
attribute prefering the autocomplete’s value.
PHP:
echo $n ?>"> |
Then, in HTML:
<input type="text" name="n" value="qwerty">
|
But Android browser sets my email to this field.
The fix of this problem is simple. I’ve just set autocomplete=”off” attribute for the inputs!
<input type="text" name="n" value="" autocomplete="off">
|
Very nice dude…
I have also found one good link here….