This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html Multipage: http://www.whatwg.org/C#attr-fe-autocomplete Complete: http://www.whatwg.org/c#attr-fe-autocomplete Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html Comment: Does it make sense to allow anything but on/off for type=color? Posted from: 59.37.57.226 User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.26 Safari/537.36 OPR/18.0.1284.11 (Edition Next)
Probably doesn't make sense to use anything but on/off... but do we want to make it non-conforming?
So autocomplete applies to these states Text, Search URL, Telephone E-mail Password Date and Time, Date, Month, Week, Time Local Date and Time Number Range Color (according to http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary ) Only certain values make sense for certain states, e.g. "name" should really use only Text I think, "street-address" should be <textarea>, "photo" should be URL or File, etc.
I guess we could check for the cases that definitely make no sense, just to help authors.
How do we want to approach this? Annotate the table at: http://www.whatwg.org/specs/web-apps/current-work/#autofill-field ...with categories that say which of type=text, type=search, type=tel, type=url, type=email, type=password, type=datetime, type=date, type=month, type=week, type=time, type=datetime-local, type=number, type=range, type=color, and <textarea> can have them? I guess type=text, type=search, and <textarea> should be allowed for all of them. Any that say "Valid integer" should also allow type=number. "Valid month string" should also allow type=month. "Valid date string" type=date. "Valid URL" type=url. "File or Valid URL" should also allow type=url or type=file. "tel" should also allow type=tel. "Valid e-mail address" should also allow type=email. Anything else? Interestingly, <select> doesn't currently allow autocomplete, I wonder what's up with that. "country" was _designed_ for <select>. Should probably file a new bug for that.
That seems OK, except "Free-form text, no newlines" should probably not allow <textarea>. The current "Valid URL" should maybe be "Valid URL potentially surrounded by spaces"? <input type=url>'s value attribute allows spaces.
The types in that table are the types the browser should restrict itself to, not the types the user should be restricted to.
I noticed that type=file isn't actually allowed to have autocomplete="" currently. So I guess those that say "File..." are somewhat pointless until we change that.
Checked in as WHATWG revision r8384. Check-in comment: Define some authoring conformance criteria that e.g. prevent autocomplete='shipping tel' being set on an <input type=date> http://html5.org/tools/web-apps-tracker?from=8383&to=8384
Created attachment 1686 [details] Please forgot my password is the old password Please forgot my password is the old password