W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2011

[whatwg] datalist @exclusive [was: Please reconsider: Set restricted palette for input type=color]

From: Diogo Resende <dresende@thinkdigital.pt>
Date: Wed, 09 Mar 2011 12:19:23 +0100
Message-ID: <40b7b34cfa192516f197943689728cac@thinkdigital.pt>
 On Tue, 8 Mar 2011 16:51:25 -0800, Jonas Sicking wrote:
> On Tue, Mar 8, 2011 at 10:46 AM, Markus Ernst <derernst at gmx.ch> 
> wrote:
>> Am 08.03.2011 19:02 schrieb Anne van Kesteren:
>>>
>>> On Tue, 08 Mar 2011 12:26:56 +0100, Jukka K. Korpela
>>> <jkorpela at cs.tut.fi> wrote:
>>>>
>>>> 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>
>
> (...)
>
> / Jonas

 I was thinking.. what about allowing big time spans, like: from April 
 1st to June 30th? Giving that the date has "-" as date element 
 separators we could not use YYYY1-MM1-DD1-YYYY2-MM2-DD2. Couldn't this 
 be useful? Even more common might the usecase where a date must be from 
 some date onward (or until some date). How is this addressed?

 -
 Diogo
Received on Wednesday, 9 March 2011 03:19:23 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:31 UTC