tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

Add autocomplete property to TForm #298

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The autocomplete attribute of the HTML form tag tells the user-agent whether 
the site wants the user-agent to be able to save form values for easier data 
entry.  While not an HTML standard, this attribute is in fairly common use by 
sites that see this feature as enhancing security by preventing storage of user 
credentials and other sensitive data.

See https://developer.mozilla.org/en/how_to_turn_off_form_autocompletion

Please consider adding a property to TForm to render this attribute.
I understand that this can be done via the Attributes property, but I believe 
it has value as a unique property.

Thanks.

Original issue reported on code.google.com by rsaf...@thesafrans.com on 18 Dec 2010 at 3:59

GoogleCodeExporter commented 9 years ago
Although being implemented in a few browsers, this is not a standard HTML 
property and i am not 100% sure if it's right to support it. However, i also 
see the importance of this property and i also think that it serves a very 
valid purpose. So this is actually a question about supporting a non-standard 
property and accepting it as a compromise between the lacking standards and the 
quest for improved security.

Implementing this natively has another downside, namely increased memory 
consumption through the additional code that would be needed, while you already 
can achieve the same thing by using Attributes.Autocomplete="off". Also, the 
percentage of meaningful forms actually using this is probably very small and 
this code would be present every time whether it is really needed in the form 
or not.

Also, you can override TForm and implement it for yourself if you really want 
it :)

So, i won't add this, as it would duplicate existing functionality.

Original comment by rojaro@gmail.com on 18 Dec 2010 at 10:01