aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-01-05 17:34:42 +0000
committerJohn Resig <jeresig@gmail.com>2009-01-05 17:34:42 +0000
commit122b672f704cca094de50dfef05e88faa84cb51d (patch)
tree50819b74b0a66e5a46421ce42124b7a757b54555 /src/support.js
parent42c99472cc5718d90a129f6ebb10ea45d5816418 (diff)
downloadjquery-122b672f704cca094de50dfef05e88faa84cb51d.tar.gz
jquery-122b672f704cca094de50dfef05e88faa84cb51d.zip
Landed cross-browser support for tabIndex, by Scott, closes ticket #3649.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js7
1 files changed, 6 insertions, 1 deletions
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"
};