Create a jQuery plugin for handling the tabindex attribute in a cross-browser way.

Description

It's hard to figure out if a tabindex has actually been set because of variances across browsers. A simple jQuery plugin should be written to abstract this process. Here's a thread from fluid-work documenting the various issues:

http://fluidproject.org/pipermail/fluid-work/2007-December/001129.html

Environment

None

Activity

Show:

Colin Clark January 2, 2008 at 6:27 PM

Implemented and committed. Awaiting code review from Simon, Michelle, and Eli before forwarding along to the jQuery community.

Colin Clark January 2, 2008 at 12:58 AM

There seems to be a problem in Opera (on both platforms) where negative tab indices return "0" instead of the correct value. So if you set the tabindex to -1, it will report 0 on a call to jQuery(element).tabIndex().

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created January 2, 2008 at 12:16 AM
Updated January 18, 2011 at 5:48 PM
Resolved January 2, 2008 at 6:27 PM