W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

[whatwg] datalist element example and option element content model

From: Kurosawa Takeshi <taken.spc@gmail.com>
Date: Thu, 18 Jul 2013 09:24:29 +0900
Message-ID: <CAHL3uyNHZMwU=HJgm_uXGkpoQF-=8gcKL-OB8VM6B5qUHWfnbQ@mail.gmail.com>
To: whatwg@whatwg.org

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.

> <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.

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

Takeshi Kurosawa <taken.spc@gmail.com>
Received on Thursday, 18 July 2013 00:24:55 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC