E-mail List Archives
Re: Chrome and Skip Links
From: Rick Hill
Date: Apr 29, 2011 11:42AM
- Next message: Sailesh Panchang: "Re: Chrome and Skip Links"
- Previous message: Claudia.Case@wellsfargo.com: "ARIA question: what's the right role(s) for Thumb Up/Thumb Down metaphor"
- Next message in Thread: Sailesh Panchang: "Re: Chrome and Skip Links"
- Previous message in Thread: Paul.Adam@dars.state.tx.us: "Re: Chrome and Skip Links"
- View all messages in this Thread
More: tabindex isn't an attribute that can be applied to a div, so if a
skip nav is anchored to a div id, the tabindexs="-1" solution isn't
available.
W3C specs:
Elements that may receive focus should be navigated by user agents
according to the following rules:
Those elements that support the tabindex attribute and assign a positive
value to it are navigated first. Navigation proceeds from the element with
the lowest tabindex value to the element with the highest value. Values
need not be sequential nor must they begin with any particular value.
Elements that have identical tabindex values should be navigated in the
order they appear in the character stream.
Those elements that do not support the tabindex attribute or support it
and assign it a value of "0" are navigated next. These elements are
navigated in the order they appear in the character stream.
Elements that are disabled do not participate in the tabbing order.
The following elements support the tabindex attribute: A, AREA, BUTTON,
INPUT, OBJECT, SELECT, and TEXTAREA.
So, actually, the -1 is out of spec. And it would seem that tabindex=0
would do the trick. 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!
Rick Hill
- Next message: Sailesh Panchang: "Re: Chrome and Skip Links"
- Previous message: Claudia.Case@wellsfargo.com: "ARIA question: what's the right role(s) for Thumb Up/Thumb Down metaphor"
- Next message in Thread: Sailesh Panchang: "Re: Chrome and Skip Links"
- Previous message in Thread: Paul.Adam@dars.state.tx.us: "Re: Chrome and Skip Links"
- View all messages in this Thread