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

Ian Hickson ian at hixie.ch
Tue Dec 7 14:13:13 PST 2010


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.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list