[whatwg] datalist element example and option element content model

Hi,

I noticed inconsistency between datalist element example and option
element content model.

In a datalist element's code example, there are option elements which
don't specify label attribute and are empty.
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-datalist-element

> <label>
>  Sex:
>  <input name=sex list=sexes>
>  <datalist id=sexes>
>   <option value="Female">
>   <option value="Male">
>  </datalist>
> </label>>

However option element section prohibits such condition.

> The label content attribute, if specified, must not be empty. If the attribute is not specified, then the element itself must not be empty.
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-option-element

My question is which one is correct: the code example or the option
element section.

Cheers,
--
Takeshi Kurosawa <taken.spc@gmail.com>

Received on Thursday, 18 July 2013 00:24:55 UTC