This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9353 - autocomplete=off should be allowed and should work on non-<input> form controls
Summary: autocomplete=off should be allowed and should work on non-<input> form controls
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-27 22:48 UTC by Maciej Stachowiak
Modified: 2010-10-04 14:29 UTC (History)
6 users (show)

See Also:


Attachments

Description Maciej Stachowiak 2010-03-27 22:48:14 UTC
The autocomplete attribute should be allowed and should have its intended effect on form controls that may be subject to autocomplete, but are not <input> types. In particular it should be allowed on <select> and <textarea>. These may be subject to autofill in some UAs and it seems like the same use case (security concerns) applies.

Facebook is a site that uses <select autocomplete=off> and apparently expects it to work:

http://www.w3.org/html/wg/wiki/index.php?title=HTML5_Authoring_Conformance_Study#facebook.com
Comment 1 Ian 'Hixie' Hickson 2010-04-02 06:52:25 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: Do any browsers support autocomplete on <select> or <textarea>?
Comment 2 Maciej Stachowiak 2010-04-02 07:24:45 UTC
(In reply to comment #1)
>
> Status: Did Not Understand Request
> Change Description: no spec change
> Rationale: Do any browsers support autocomplete on <select> or <textarea>?
> 

By that do you mean the autocomplete attribute, or the actual feature of autocompletion?

1) I do not believe any browser supports the autocomplete attribute on <select> or <textarea>.

2) I believe Safari will in some cases autofill values in a <select>. This occasionally gets broken, but we will autofill country or state <selects> when filling an address for instance.

3) I don't know of any browsers that will autofill <textarea> under any circumstances.
Comment 3 Ian 'Hixie' Hickson 2010-04-12 08:10:33 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Since no browsers support blocking autocomplete on these elements as far as I can tell, and since indeed most browsers don't seem to support even autocompleting these elements as far as I can tell, I'd rather not make this conforming. I don't see any point in adding this feature, either, since as far as I can tell all it would do is make the user experience worse. (That's certainly been my experience with autocomplete=off on other elements, and <select> and <textarea> don't even have the theoretical advantage that blocking autocomplete on <input type=text> does, namely the ability to add author-provided suggestion features.)

There's also the concern that we've got a lot of new features here already, so we shouldn't add more until we've gotten the existing ones implemented. Baby steps and all.