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 23782 - Does it make sense to allow anything but on/off for type=color?
Summary: Does it make sense to allow anything but on/off for type=color?
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: قلــــ♥حزين♥ــــــــــب
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-10 06:57 UTC by contributor
Modified: 2017-11-29 01:49 UTC (History)
5 users (show)

See Also:


Attachments
Please forgot my password is the old password (59 bytes, text/plain)
2017-11-29 01:46 UTC, قلــــ♥حزين♥ــــــــــب
Details

Description contributor 2013-11-10 06:57:59 UTC
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)
Comment 1 Ian 'Hixie' Hickson 2013-11-11 18:25:50 UTC
Probably doesn't make sense to use anything but on/off... but do we want to make it non-conforming?
Comment 2 Simon Pieters 2013-11-12 03:27:31 UTC
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.
Comment 3 Ian 'Hixie' Hickson 2013-11-12 21:54:42 UTC
I guess we could check for the cases that definitely make no sense, just to help authors.
Comment 4 Ian 'Hixie' Hickson 2013-11-19 23:15:02 UTC
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.
Comment 5 Simon Pieters 2013-11-20 08:05:26 UTC
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.
Comment 6 Ian 'Hixie' Hickson 2013-11-22 18:13:59 UTC
The types in that table are the types the browser should restrict itself to, not the types the user should be restricted to.
Comment 7 Ian 'Hixie' Hickson 2014-01-08 00:06:05 UTC
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.
Comment 8 contributor 2014-01-08 00:24:41 UTC
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
Comment 9 قلــــ♥حزين♥ــــــــــب 2017-11-29 01:46:15 UTC
Created attachment 1686 [details]
Please forgot my password is the old password

Please forgot my password is the old password