W3C home > Mailing lists > Public > www-validator@w3.org > November 2015

Error in Validator or Specification ?

From: Heimetli Software AG <validator@heimetli.ch>
Date: Mon, 9 Nov 2015 10:28:41 +0100
To: <www-validator@w3.org>
Message-ID: <000001d11ad1$05a4aba0$10ee02e0$@heimetli.ch>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:14 UTC