This project is archived and is in readonly mode.
Add autocomplete="off" Attribute to the authenticity_token of form_tag
-
Greg Molnar
As far as I know the autocomplete attribute is not valid in xhtml so not sure if this would be a good idea to add.
-
Florent Viard
It is true, but this problem is really bad when you suffer of it and there is a lot of bug reports related to it.
I think that it is not so bad to add it as a temporary workaround until the major internet browsers fix it for hidden fields or that every one will switch to HTML5.
(by the way, i'm not sure, but is it really not yet valid? http://www.w3.org/Submission/2005/SUBM-web-forms2-20050411/#the-aut...)I read that a lot of web sites (mainly banks) use it.
-
Greg Molnar
The site you linked to is just a submission of planning changes in the w3c spec. unfortunately it won't be valid soon. as far as I know rails has a principle as it generates valid xhtml markup and this would be cross that. although you can easily add a javascript to your site to add this attribute to the token's input.