W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2013

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 25 Jul 2013 16:36:17 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-22802-169@http.www.w3.org/Bugs/Public/>

            Bug ID: 22802
           Summary: Validation of the select element and empty options
                    differ from the HTML5 spec
    Classification: Unclassified
           Product: Validator (Nu)
           Version: unspecified
          Hardware: PC
                OS: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
          Assignee: mike+validator@w3.org
          Reporter: laurent.goderre@gmail.com
        QA Contact: www-validator-cvs@w3.org

When I validate this page:


I Get the following error:

Error: Element option without attribute label must not be empty.

>From line 104, column 9; to line 104, column 17


Here is what the spec says about empty option elements

If a select element has a required attribute specified, does not have a
multiple attribute specified, and has a display size of 1; and if the value of
the first option element in the select element's list of options (if any) is
the empty string, and that option element's parent node is the select element
(and not an optgroup element), then that option is the select element's
placeholder label option.

An empty option element should be permitted as the first child of an select

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 25 July 2013 16:36:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:55 UTC