WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Chrome and Skip Links

for

From: Jared Smith
Date: Apr 29, 2011 1:09PM


On Fri, Apr 29, 2011 at 11:41 AM, Rick Hill < <EMAIL REMOVED> > wrote:
> tabindex isn't an attribute that can be applied to a div

That's according to HTML 4. ARIA overrides this rule to allow tabindex
on any element and allow values of 0 or -1
(http://www.w3.org/TR/2010/WD-wai-aria-practices-20100916/#kbd_focus).

Indeed tabindex of 0 or -1 doesn't really make sense on elements that
are already keyboard navigable. I guess you could use tabindex=-1 to
remove an element from the natural taborder, though I can think of no
situation where this would be a good idea.

Of note is that these values have been supported for this behavior in
all major browsers starting with IE5.

> However, in Safari 5 under OSX 10.6 , neither
> tabindex="-1 or tabindex="0" applied to a named anchor moves the keyboard
> focus for me when I test it Š wish it would!

Yep. As Paul noted, this is a significant oversight/bug that is
currently being addressed in Safari, thus the JavaScript enhancement
that sets explicit focus to these elements (which, again, is only
possible with tabindex=-1).

Jared