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

[whatwg] How not to fix HTML

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 01 Nov 2006 14:00:47 +1100
Message-ID: <45480DDF.5020203@lachy.id.au>
Matthew Raymond wrote:
>    Here's a thought:
> | <p>
> |   <grouplabel for="gender">Gender:</grouplabel>
> |    <label><input type="radio" name="gender" value="m">Male</label>
> |    <label><input type="radio" name="gender" value="f">Female</label>
> | </p>
>    The element <grouplabel> gives the label for the group.

That's similar to the <label group=""> idea I posted.

> The |for| attribute in this case takes a name rather than and ID,

I think that could be somewhat confusing using the same attribute name 
for different, but somewhat related, features.  That's why I like the 
group attribute, because then there's no chance for confusion about 
whether it takes a name or id in this context.

Also, <label> already supported, so there's fewer backwards 
compatibility issues.

Lachlan Hunt
Received on Tuesday, 31 October 2006 19:00:47 UTC

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