Re: erroneous datalist error

On 15 Apr 2016, at 19:37, Prune Master wrote:

> Validator reports:  "Element option without attribute label must not be empty."
>
> Where does this quoted error text even come from?
>
> I do not see any such prohibition in the HTML5 option element content model spec.

I do.

>> If the element has a label attribute and a value attribute: Empty.

So it has a label, so it isn't that case.

>> If the element has a label attribute but no value attribute: Text.

Also has a label, so it isn't that case

>> If the element has no label attribute: Text that is not inter-element whitespace.

Here we are. No label. Check. Content must be "Text that is not inter-element whitespace", which means "must not be empty".


-- 
David Dorward
http://dorward.co.uk/

Received on Monday, 18 April 2016 10:24:47 UTC