This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29563 - Select should allow blank options
Summary: Select should allow blank options
Status: RESOLVED MOVED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5: The Markup Language (editor: Michael(tm) Smith) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-07 16:01 UTC by mvdleij
Modified: 2016-04-07 18:20 UTC (History)
3 users (show)

See Also:


Attachments

Description mvdleij 2016-04-07 16:01:48 UTC
According to the HTML spec per the content model for the option element, neither <option></option> nor <option label=""></option> are valid.

I believe they should be valid, because:

1) there is widespread use of <option></option> on the internet, and

2) A (granted, non-normative) section of the select element describes setting the length attribute of a select element to add "new blank option elements to the select".  There is no other definition of "blank option" and all current web browsers will generate "<option></option>" in response to increasing a select's length.
Comment 1 Charles McCathieNevile 2016-04-07 18:20:11 UTC
Moved to the HTML github: https://github.com/w3c/html/issues/176