W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] Form controls inside a label but not labelled by it

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 6 Feb 2012 23:31:45 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1202062329210.3868@ps20323.dreamhostps.com>
On Sun, 15 Jan 2012, Mounir Lamouri wrote:
> 
> I agree that Opera/IE behavior is better to solve this case but it 
> doesn't help for this one: <label><input type='radio'><input></label> 
> And it seems that web authors tend to write that and expect the radio to 
> be checked when the text field is focused based on the bug reports we 
> had.
> 
> Between two use cases I think the second is more important because the 
> authors are more likely to have write something they meant to write.

I don't really understand why you'd use <label> for that case. There's no 
label, just two controls.

All in all I'm not at all convinced this is something we should encourage.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 6 February 2012 15:31:45 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:39 UTC