Skip to content
Browse files

Added fix for non-standard CSS attributes in IE.

  • Loading branch information...
1 parent 8a1adfc commit 23e255015fb5e4f5ce7e8dd091b1550e80cccdd9 @jeresig jeresig committed Aug 24, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jquery/jquery.js
View
4 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,"");

0 comments on commit 23e2550

Please sign in to comment.
Something went wrong with that request. Please try again.