diff options
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js index 6da68ef11..4193bbffb 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -600,8 +600,9 @@ if ( !jQuery.support.style ) { jQuery.attrHooks.style = { get: function( elem ) { // Return undefined in the case of empty string - // Normalize to lowercase since IE uppercases css property names - return elem.style.cssText.toLowerCase() || undefined; + // Note: IE uppercases css property names, but if we were to .toLowerCase() + // .cssText, that would destroy case senstitivity in URL's, like in "background" + return elem.style.cssText || undefined; }, set: function( elem, value ) { return ( elem.style.cssText = value + "" ); |