W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

[whatwg] Select conformance

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 15 Aug 2006 07:58:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0608150752510.5340@dhalsim.dreamhost.com>
On Wed, 29 Mar 2006, Henri Sivonen wrote:
>
> Single select:
> Is it conforming for an option to be both selected and disabled? (I think it
> shouldn't be conforming.)

No, it is conforming. This is used a lot on the Web for giving labels to 
Selects ("Select a country...").

WF3 will address this better, but in the meantime it's good enough.


> And analogously: Is is conforming for a radio button to be both checked and
> disabled if the whole set is not disabled? (This one is harder to check, but
> anyway...)

Yes, it is. It happens sometimes, e.g. when the user has selected an 
option but later changes something and that option becomes disabled (but 
is still selected).


> Is it conforming to have no option that is marked selected? (I think 
> allowing this is safe.)

Yes. For size=1 controls, the first non-disabled element gets selected.


> Select multiple:
> Is it conforming for an option to be both selected and disabled? How do native
> widgets handle this?

Yes. Generally the item just starts selected but then when you pick 
another option you can't select it again, I presume.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 15 August 2006 00:58:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC