W3C home > Mailing lists > Public > public-html@w3.org > March 2012

Option element in a Datalist with no label

From: Sharon Newman (COHEN) <Sharon.Newman@microsoft.com>
Date: Thu, 15 Mar 2012 02:24:14 +0000
To: "HTMLWG WG (public-html@w3.org)" <public-html@w3.org>
Message-ID: <BB015EE6F6DAC54393E9529E21278DE536E95F7C@TK5EX14MBXC121.redmond.corp.microsoft.com>
With the following code:

<input list="test" type=text>
<datalist id=test>
                <option value="a">
                <option value = "b">
                <option value="c">

According to the spec, these options don't have a label, however, in FF and Opera today the value is being displayed as the label. Is this expected?  If so, should the spec note that this is allowed?

I'm concerned because if the datalist above were instead a select control, these options would be displayed in the select control with no label. We're trying to make sure we have the right behavior for this scenario in IE10.

Received on Thursday, 15 March 2012 02:25:15 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:21 UTC