aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-07 14:36:30 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-07 14:36:30 +0000
commit49d0d5b7a3628947a14028d14ed042746cc6c3e4 (patch)
treeb30d600ebc5a07b6555e7f1d4bcbcb627cd31a2e /src/support.js
parentf9e0b1ed7a5f252bb58aba9bdfb96653af2b4c1b (diff)
downloadjquery-49d0d5b7a3628947a14028d14ed042746cc6c3e4.tar.gz
jquery-49d0d5b7a3628947a14028d14ed042746cc6c3e4.zip
Fixed tabindex normalization so that elements that natively support tabbing, but don't have a tabindex explicitly set return 0 instead of undefined.
Removed jQuery.support.tabindex since we're only normalizing non-XML right now and all browsers support tabIndex for HTML documents.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/support.js b/src/support.js
index c334e78d6..bacc5bd4e 100644
--- a/src/support.js
+++ b/src/support.js
@@ -51,10 +51,6 @@
// (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
@@ -101,5 +97,5 @@ jQuery.props = {
maxlength: "maxLength",
cellspacing: "cellSpacing",
rowspan: "rowSpan",
- tabindex: jQuery.support.tabindex ? "tabindex" : "tabIndex"
+ tabindex: "tabIndex"
};