git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a1adfc
)
Added fix for non-standard CSS attributes in IE.
author
John Resig
<jeresig@gmail.com>
Thu, 24 Aug 2006 23:10:54 +0000
(23:10 +0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 24 Aug 2006 23:10:54 +0000
(23:10 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
a358238
..
08f325c
100644
(file)
--- 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) {
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,"");
} else if (document.defaultView && document.defaultView.getComputedStyle) {
p = p.replace(/([A-Z])/g,"-$1").toLowerCase();
var s = document.defaultView.getComputedStyle(e,"");