Error in Validator or Specification ?

Hello WWW-Validator,

I copied this fragment of HTML5 from the Specification
Into a form and fed it to the validator at validator.w3.org:

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

/* First example below http://www.w3.org/TR/html5/forms.html#the-datalist-element */

And get the following errors

Error: Element option without attribute label must not be empty.
>From line 14, column 3; to line 14, column 23
emale">↩  <option value="Male">↩ </da
Error: Element option without attribute label must not be empty.
>From line 15, column 2; to line 15, column 12
="Male">↩ </datalist>↩</lab:

Why does an example from the specification NOT
pass the validator ??

Regards

P. Tellenbach

***************************************
*
*      Heimetli Software AG
*      Dorfstrasse 21, 4613 Rickenbach SO
*      Tel: 062 216 29 07
*
*      Web: http://www.heimetli.ch

Received on Monday, 9 November 2015 13:56:52 UTC