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 13570 - why does input type=color support autocomplete?
Summary: why does input type=color support autocomplete?
Status: RESOLVED NEEDSINFO
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Cynthia Shelly
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: a11y
Depends on:
Blocks:
 
Reported: 2011-08-03 03:45 UTC by Cynthia Shelly
Modified: 2012-01-11 19:07 UTC (History)
10 users (show)

See Also:


Attachments

Description Cynthia Shelly 2011-08-03 03:45:16 UTC
Please describe what this feature is supposed to do.  Is it for typed RGB values?
Comment 1 Tab Atkins Jr. 2011-08-03 15:29:58 UTC
Are you asking about the <input type=color> feature generally, or autocomplete on <input type=color>?

If the latter, color inputs have a value.  The browser may remember this value, and so controlling the autocomplete behavior for it seems roughly as useful as doing so for any other input.
Comment 2 Michael[tm] Smith 2011-08-04 05:00:56 UTC
mass-moved component to LC1
Comment 3 Ian 'Hixie' Hickson 2011-08-09 22:20:01 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: see comment 1
Comment 4 Cynthia Shelly 2011-11-03 22:41:40 UTC
I would expect <input type=color> to render as a color picker, and I can't see what autocomplete would mean for a picker.  What does autocomplete on a color picker do?
Comment 5 Tab Atkins Jr. 2011-11-03 22:58:03 UTC
(In reply to comment #4)
> I would expect <input type=color> to render as a color picker, and I can't see
> what autocomplete would mean for a picker.  What does autocomplete on a color
> picker do?

The picked color is a value.  If the browser remembers that value, then autocomplete can ensure that the input starts with that color chosen.
Comment 6 Cynthia Shelly 2011-11-03 23:05:12 UTC
Thanks, that makes sense.  Can we add that sentence to the spec?
Comment 7 Ian 'Hixie' Hickson 2011-11-04 17:13:28 UTC
We can definitely add a non-normative note to the spec that clarifies that browsers can remember user input. Can you clarify why this is unclear for type=color but not for the other form controls? (It would help me with working out how to make this clearer.)
Comment 8 Michael[tm] Smith 2011-11-20 14:59:31 UTC
Cynthia, please see comment #7:
> We can definitely add a non-normative note to the spec that clarifies that
> browsers can remember user input. Can you clarify why this is unclear for
> type=color but not for the other form controls? (It would help me with working
> out how to make this clearer.)
Comment 9 Ian 'Hixie' Hickson 2011-11-24 02:27:47 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: see comment 7
Comment 10 Cynthia Shelly 2011-12-23 20:43:07 UTC
I'm having a hard time understanding how the UI would work for this in a color picker.  If type=color is rendered as a text field, it would have a dropdown for autocomplete, like any other text field.  But if it is rendered as a color picker, what would the autocomplete look like?  Maybe just say that the autocomplete is only used if type=color is rendered as a text box?
Comment 11 Benjamin Hawkes-Lewis 2011-12-23 22:45:22 UTC
(In reply to comment #10)
> I'm having a hard time understanding how the UI would work for this in a color
> picker.  If type=color is rendered as a text field, it would have a dropdown
> for autocomplete, like any other text field.  But if it is rendered as a color
> picker, what would the autocomplete look like?

If I picked red last time, it could automatically show red selected rather than requiring me to manually select it again.

--
Benjamin Hawkes-Lewis