Autocomplete="off" on textarea fields doesn’t seem to work as it does with input fields. I couldn’t find anything about this on Google. Is there a difference?
Specifically, I have a page that has half normal input fields, and the other half dynimically generated via javascript. When I navigate away from the page and then navigate back, the text that was in the dynamically generated fields overwrites that which is in the normal fields. This only happens when I navigate away and then click back. If I just refresh the page, it doesn’t happen. Autocomplete="false" solved this problem for input fields, but it did not for textareas.
The
autocompleteattribute or property is limited toinputelements, both according to Microsoft description of the feature and according to the HTML5 draft description proposed to standardize the feature. So you should expect browsers to ignore it for other elements, includingtextarea.Apparently,
autocompleteis not the real question, just an assumed approach, which is a wrong one. But the real problem was not really described.