From 122b672f704cca094de50dfef05e88faa84cb51d Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 5 Jan 2009 17:34:42 +0000 Subject: Landed cross-browser support for tabIndex, by Scott, closes ticket #3649. --- src/support.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/support.js') diff --git a/src/support.js b/src/support.js index 6d6bbce74..c334e78d6 100644 --- a/src/support.js +++ b/src/support.js @@ -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 @@ jQuery.props = { readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", - rowspan: "rowSpan" + rowspan: "rowSpan", + tabindex: jQuery.support.tabindex ? "tabindex" : "tabIndex" }; -- cgit v1.2.3