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

Ian Hickson ian at hixie.ch
Thu Dec 30 18:20:07 PST 2010

On Fri, 24 Sep 2010, Mounir Lamouri wrote:
> I agree that a child of a datalist element should not block the form 
> submission. However, I'm wondering why do we care about this particular 
> edge case when there are a lot of situations where an element can be 
> invalid without any possible action from the user.
> If there is no specific use cases in mind I think we should just remove 
> that.

It's so that you can use a <select> in the <datalist> (with the same 
<option>s) for fallback in older UAs, without that <select> having any 
effect on the form submission.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list