[whatwg] accesskey attribute with display:none elements
Olli.Pettay at helsinki.fi
Tue Nov 25 14:55:21 PST 2008
On 11/26/2008 12:39 AM, Benjamin Hawkes-Lewis wrote:
> Olli Pettay wrote:
>>> Couldn't you style such elements visible with :focus and :active?
>> What you mean? How do you focus a display:none element?
> Good point. You can't. Isn't that a problem in practice? i.e. When do
> you want a control to have an accesskey but _not_ be focusable?
For example when you want to execute some JS when accesskey is pressed:
That behavior is used in the web
The comment mentions dhtml menus and that is a valid use case for
accesskeys in display:none elements.
More information about the whatwg