[Bug 22802] Validation of the select element and empty options differ from the HTML5 spec

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22802

Kyle <kfox112@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kfox112@gmail.com,
                   |                            |mike+validator@w3.org
              Flags|                            |needinfo?(mike+validator@w3
                   |                            |.org)

--- Comment #2 from Kyle <kfox112@gmail.com> ---
> > I Get the following error:
> > 
> > Error: Element option without attribute label must not be empty.
> 
> Yeah, that error is correct. The spec says that an empty option element
> without an a label attribute is a document-conformance error.
> 
>   http://www.w3.org/TR/html51/forms.html#attr-option-label
> 
> "The label content attribute, if specified, must not be empty. If the
> attribute is not specified, then the element itself must not be empty."

By following the provided link, I'm not able to locate the second sentence "If
the attribute is not specified, then the element itself must not be empty."

Is it possible the spec has been amended and the validation service should be
updated?  It seems that empty option elements "<option value=''></option>"
should be allowed in HTML5, especially for <select> elements that do not have
the required attribute specified.

Apologies for bringing this to light again a year and a half later.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 12 March 2015 19:11:45 UTC