[whatwg] Why children of datalist elements are barred from constraint validation?

Jonas Sicking jonas at sicking.cc
Fri Jul 29 17:19:52 PDT 2011


On Fri, Jul 29, 2011 at 5:17 PM, Anne van Kesteren <annevk at opera.com> wrote:
> On Fri, 29 Jul 2011 15:20:59 -0700, Jonas Sicking <jonas at sicking.cc> wrote:
>>
>> Ah, well, then it definitely seems like we should get rid of this
>> feature. The harm is definitely there in that it's adding a feature
>> without solving any problem.
>>
>> For what it's worth, I'm not even convinced there is a problem. The
>> website can always let the <select> be submitted and ignore it on the
>> server if it contains a empty value, and then make the first <option>
>> in the <select> look something like <option value="">You can select a
>> prefilled value here</option>
>
> If we are removing the <select> fallback feature we should also change the
> way you find <option> elements for a <datalist> element I think. That should
> be aligned with <select>: A child element search rather than a descendant
> element search.

Indeed!

/ Jonas



More information about the whatwg mailing list