[whatwg] Please reconsider: Set restricted palette for input type=color

Anne van Kesteren annevk at opera.com
Tue Mar 8 10:02:12 PST 2011

On Tue, 08 Mar 2011 12:26:56 +0100, Jukka K. Korpela <jkorpela at cs.tut.fi>  
> For example, consider a date picker. Quite often, whether trying to make  
> dates or selling flights, there is a known set of (non-consecutive) days  
> that are possible, so we would like to write, say,
> <input type="date" id="date" name="date"
>    value="2011-04-01" list="datelist">
>  <datalist id="datelist">
>     <option value="2011-04-01" label="April 1st">
>     <option value="2011-04-08" label="April 8th">
>     <option value="2011-04-09" label="April 9th">
>  </datalist>
> This is currently conforming, though no browser seems to make use of the  
> datalist. A good implementation would open up a calendar for April, with  
> only days 1, 8, 9 selectable and day 1 highlighted. Many existing  
> applications use such interfaces, so there is apparent need for them.

Agreed that we should fix this, but note that <datalist> is for additional  
or pre-suggested options. The idea is that the user still has choice so  
the other days should be selectable too.

Anne van Kesteren

More information about the whatwg mailing list