Re: Accesskey issues

On Sat, 06 Jun 2009 01:15:51 +0200, Ian Hickson <ian@hixie.ch> wrote:

>> Also, there's some magic required with focusing and accesskey that i
>> don't quite remember. e.g. for fieldset, legend and label you don't
>> focus the element itself but a form control.
>
> Currently <fieldset>, <legend>, and <label> in HTML5 don't support
> accesskey="" (since they can't be focused directly). Should they? How
> should it work?

<legend accesskey=1> will focus/activate the first focusable element that  
comes after the <legend> itself, in tree order. If there is no such  
element, does nothing.

<label accesskey=1> will focus/activate the label's associated control. If  
there is no such element, does nothing.

<fieldset> is not magic.

-- 
Simon Pieters
Opera Software

Received on Saturday, 6 June 2009 07:46:17 UTC