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

[whatwg] LABEL and radio/checkbox onclick

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 26 Aug 2004 13:26:06 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408261324280.21191@dhalsim.dreamhost.com>
On Wed, 18 Aug 2004, James Graham wrote:
> On 18 Aug 2004, at 14:16, Matthew Raymond wrote:
> 
> > Ian Hickson wrote:
> > > Hmm, yes. This is platform-dependent, though. Added:
> > >   <p>The <code>label</code> element's exact default behaviour must
> > >   match the platform's label behaviour. For example. on platforms
> > >   where clicking a checkbox label checks the checkbox, clicking a
> > >   <code>label</code> element must cause a <code>click</code> event to
> > >   be synthesised and fired at the checkbox.</p>
> 
> Ian: does the spec make it clear that the HTML 4 behavior is expected 
> when a <label> is focused by use of an accesskey (i.e. in this case 
> focus should pass to the control?). Not doing this is a serious 
> usability problem since HTML 4 suggests defining the accesskey on the 
> label rather than the control and there is no platform-dependent 
> behavior to match in this case.

Added:

  <p>The <code>accesskey</code> attribute on <code>label</code>
  elements must act the same way as they would have if specified on
  the associated element directly.</p>

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

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