Added fix for non-standard CSS attributes in IE.
This commit is contained in:
parent
8a1adfcd2a
commit
23e255015f
1 changed files with 2 additions and 2 deletions
4
src/jquery/jquery.js
vendored
4
src/jquery/jquery.js
vendored
|
@ -957,8 +957,8 @@ jQuery.extend({
|
||||||
if (!force && e.style[p])
|
if (!force && e.style[p])
|
||||||
r = e.style[p];
|
r = e.style[p];
|
||||||
else if (e.currentStyle) {
|
else if (e.currentStyle) {
|
||||||
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
|
var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
|
||||||
r = e.currentStyle[p];
|
r = e.currentStyle[p] || e.currentStyle[np];
|
||||||
} else if (document.defaultView && document.defaultView.getComputedStyle) {
|
} else if (document.defaultView && document.defaultView.getComputedStyle) {
|
||||||
p = p.replace(/([A-Z])/g,"-$1").toLowerCase();
|
p = p.replace(/([A-Z])/g,"-$1").toLowerCase();
|
||||||
var s = document.defaultView.getComputedStyle(e,"");
|
var s = document.defaultView.getComputedStyle(e,"");
|
||||||
|
|
Loading…
Reference in a new issue