X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fsupport.js;h=c334e78d600cd113609cc32da7e06e2f2bdc4fc2;hb=cc70e03ec7387aaab5f1e090fde2a3faeb001ba6;hp=20289c99b214b8ac5756b53f298b730947d1e76d;hpb=c9dd5d997229919b8dd4cc402b7b7a465982071a;p=jquery.git diff --git a/src/support.js b/src/support.js index 20289c9..c334e78 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 @@ -78,6 +82,7 @@ // Cloning a node shouldn't copy over any // bound event handlers (IE does this) jQuery.support.noCloneEvent = false; + div.detachEvent("onclick", arguments.callee); }); div.cloneNode(true).fireEvent("onclick"); } @@ -95,5 +100,6 @@ jQuery.props = { readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", - rowspan: "rowSpan" -}; \ No newline at end of file + rowspan: "rowSpan", + tabindex: jQuery.support.tabindex ? "tabindex" : "tabIndex" +};