:focusable and :tabbable selectors

203 views
Skip to first unread message

Scott González

unread,
Jan 19, 2009, 9:17:22 PM1/19/09
to jQuery Accessibility
Colin and I just went through the code for the :focusable and :tabbable selectors and fixed some edge cases (as if anything with these isn't an edge case).  The tests are completely revamped to make reading them much easier and allow us to keep our sanity.  We're pretty confident that these are ready to land in trunk now, but I'd like to give everyone a chance to review the final code first.

In case you don't know, the code lives at http://jquery-ui.googlecode.com/svn/branches/experimental/tabbable/

Eduardo Lundgren

unread,
Jan 19, 2009, 10:12:12 PM1/19/09
to jQuery Accessibility
Ignore my another thread related to this subject I sent to the wrong
thread.

The anchor tag could be focused, this tag should not be in the list?

(/input|select|textarea|button|object|a/.test(nodeName) ?

Scott González

unread,
Jan 19, 2009, 10:13:34 PM1/19/09
to jquer...@googlegroups.com
On Mon, Jan 19, 2009 at 10:12 PM, Eduardo Lundgren <eduardo...@gmail.com> wrote:
(/input|select|textarea|button|object|a/.test(nodeName) ?

We check for anchors and areas separately because they're only natively focusable when an href is present.

Eduardo Lundgren

unread,
Jan 19, 2009, 10:26:58 PM1/19/09
to jquer...@googlegroups.com
Interesting.
--
Eduardo Lundgren
Software Engineer
Liferay, Inc.
Enterprise. Open Source. For Life.
Reply all
Reply to author
Forward
0 new messages