W3C home > Mailing lists > Public > www-validator@w3.org > April 2016

Re: erroneous datalist error

From: David Dorward <david@dorward.me.uk>
Date: Mon, 18 Apr 2016 11:24:16 +0100
To: "Prune Master" <prunemaster@hotmail.com>
Cc: www-validator@w3.org
Message-ID: <32CF7F78-7C3D-4E9E-A232-B2263E43F6DB@dorward.me.uk>
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
Received on Monday, 18 April 2016 10:24:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:53 UTC