W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2010

[whatwg] [html5] r5399 - [giow] (2) Define option.selected; make <option disabled selected> still get sel [...]

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 7 Dec 2010 22:13:13 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1012072212050.26618@ps20323.dreamhostps.com>
On Tue, 31 Aug 2010, Simon Pieters wrote:
> 
> Maybe <select required><option value selected disabled>Choose one... 
> should be allowed?

I considered that, but since disabled options don't get selected, that 
wouldn't work without yet more special-casing.

> The spec allows <select required><option value>Choose one...<option 
> selected>Foo. Maybe it should require the label option to be selected by 
> default (either implicitly or explicitly) when the select has required?

No, otherwise there'd be no way to just select the current value without 
removing the label.

> The spec currently doesn't require there to be any select label option 
> if the required attribute is present on select.

Right, the label doesn't have to be present. Why would we require one?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 7 December 2010 14:13:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:02 UTC