[whatwg] LABEL and radio/checkbox onclick

Ian Hickson ian at hixie.ch
Thu Aug 26 06:26:06 PDT 2004


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list