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

[whatwg] LABEL and radio/checkbox onclick

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 18 Aug 2004 00:00:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408172356130.22355@dhalsim.dreamhost.com>
On Wed, 21 Jul 2004, Matthew Raymond wrote:
> > > 
> > > Semantically, labels should *always* have connection so some control --
> > 
> > Sure, but this cannot always be reflected in HTML. The most common example
> > would be a heading <label> for a set of radio buttons
> 
>    This is invalid markup.

Indeed; a <fieldset> would be more appropriate there.

According to WF2, if a label contains more than one control, it is only 
associated with the first control.


> > (for which <fieldset> would usually be inappropriate).

I don't really see why. It's a set of fields.

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC