diff options
author | John Resig <jeresig@gmail.com> | 2006-08-24 23:10:54 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-08-24 23:10:54 +0000 |
commit | 23e255015fb5e4f5ce7e8dd091b1550e80cccdd9 (patch) | |
tree | 4dd431b584886c14bf5339cda68ee1c48d117c25 /src | |
parent | 8a1adfcd2a0ea8fbb72ac53537cbfe6ebeba0cdf (diff) | |
download | jquery-23e255015fb5e4f5ce7e8dd091b1550e80cccdd9.tar.gz jquery-23e255015fb5e4f5ce7e8dd091b1550e80cccdd9.zip |
Added fix for non-standard CSS attributes in IE.
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/jquery.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index a35823842..08f325c34 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -957,8 +957,8 @@ jQuery.extend({ if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) { - p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); - r = e.currentStyle[p]; + var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); + r = e.currentStyle[p] || e.currentStyle[np]; } else if (document.defaultView && document.defaultView.getComputedStyle) { p = p.replace(/([A-Z])/g,"-$1").toLowerCase(); var s = document.defaultView.getComputedStyle(e,""); |