- From: Ian Hickson <ian@hixie.ch>
- Date: Wed, 29 Jul 2009 00:27:00 +0000 (UTC)
- To: Simon Pieters <simonp@opera.com>
- Cc: "public-html@w3.org" <public-html@w3.org>
On Tue, 14 Jul 2009, Simon Pieters wrote: > On Tue, 14 Jul 2009 08:07:25 +0200, Ian Hickson <ian@hixie.ch> wrote: > > On Mon, 22 Jun 2009, Simon Pieters wrote: > > > > > > http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#using-the-accesskey-attribute-to-define-a-command > > > > > > says > > > > > > "The Action of the command is to run the focusing steps for the > > > element." > > > > > > while all other commands the Action is basically the same as > > > clicking. > > > > > > Shouldn't it be fire a click event instead? > > > > What would clicking do? > > It would run the onclick handler. That would fail to focus the element, which seems to be a problem. We definitely don't want to make what is an access key dependent on what listeneres are registered, and looking just for an "onclick" attribute seems confusing. So I don't really see how this can work. > > On Mon, 22 Jun 2009, Simon Pieters wrote: > > > > > > "An element that is focusable, has an assigned access key, and is > > > [not an element that already defines a command], defines a command." > > > http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#using-the-accesskey-attribute-to-define-a-command > > > > > > Please remove "that is focusable, ", since it seems pointless to > > > require that e.g. > > > > > > <div accesskey=a onclick=foo()>test</div> > > > > > > should have an assigned access key that does nothing. > > > > Don't use <div> for this purpose. Use <input type=button>, or > > <button>, or <a>. > > Well, I don't disagree, but ARIA and global tabindex="" exists to > support using other elements for this purpose... Do we really want to be encouraging that though? I guess we could make any element that isn't otherwise an action and that has an access key into a command, and have its action focus and then .click() the element... Ok, done that. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 29 July 2009 00:27:39 UTC