Index: /Users/sgonzale/Documents/workspace/jQuery/src/core.js
===================================================================
--- /Users/sgonzale/Documents/workspace/jQuery/src/core.js (revision 6042)
+++ /Users/sgonzale/Documents/workspace/jQuery/src/core.js (working copy)
@@ -970,6 +970,13 @@
if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
return elem.getAttributeNode( name ).nodeValue;
+ // elem.tabindex doesn't always return the correct value
+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+ if ( name == jQuery.props.tabindex ) {
+ var attributeNode = elem.getAttributeNode(jQuery.props.tabindex);
+ return attributeNode && attributeNode.specified && attributeNode.value || undefined;
+ }
+
return elem[ name ];
}
Index: /Users/sgonzale/Documents/workspace/jQuery/src/support.js
===================================================================
--- /Users/sgonzale/Documents/workspace/jQuery/src/support.js (revision 6042)
+++ /Users/sgonzale/Documents/workspace/jQuery/src/support.js (working copy)
@@ -51,6 +51,10 @@
// (IE uses styleFloat instead of cssFloat)
cssFloat: !!a.style.cssFloat,
+ // Verify tabindex attribute existence
+ // (IE uses tabIndex instead of tabindex)
+ tabindex: !a.getAttributeNode('tabindex'),
+
// Will be defined later
scriptEval: false,
noCloneEvent: true
@@ -96,5 +100,6 @@
readonly: "readOnly",
maxlength: "maxLength",
cellspacing: "cellSpacing",
- rowspan: "rowSpan"
+ rowspan: "rowSpan",
+ tabindex: jQuery.support.tabindex ? "tabindex" : "tabIndex"
};
Index: /Users/sgonzale/Documents/workspace/jQuery/test/index.html
===================================================================
--- /Users/sgonzale/Documents/workspace/jQuery/test/index.html (revision 6042)
+++ /Users/sgonzale/Documents/workspace/jQuery/test/index.html (working copy)
@@ -195,6 +195,20 @@