Reputation: 727
What is going on here? In Chrome, if you click on an input, you get autocomplete for country
. If you change country
to city
, you get autocomplete for city
.
This is a minimal case. If you get rid of the table or get rid of an input, the behavior goes away.
<table>
<tr>
<td>country</td>
</tr>
<tr>
<td>
<input autocomplete="off">
<input autocomplete="off">
<input autocomplete="off">
</td>
</tr>
</table>
I am running Chrome, Version 89.0.4389.82 (Official Build) (64-bit) (I just upgraded to 89.0.4389.90, and the problem is still there.)
Try it: https://codepen.io/timkay/pen/abBMGRE
Upvotes: 2
Views: 1366
Reputation: 727
I found an ugly workaround: change any troublesome words like country
, city
, address
, etc., so that the browser doesn't recognize them. Here is an example:
<div><span style="display: none;">x</span>country</div>
Upvotes: 1