diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-12-31 12:30:02 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-12-31 12:30:02 -0500 |
commit | abead1c86b75d376544e52cd916031a67caf2c34 (patch) | |
tree | deb5794012c89c8e2ccb8394c032e03f09f17293 /src | |
parent | c9b75df7fba7c96f38efcd60629830e76ce24863 (diff) | |
download | jquery-abead1c86b75d376544e52cd916031a67caf2c34.tar.gz jquery-abead1c86b75d376544e52cd916031a67caf2c34.zip |
Fixes #13088: under IE8, $(selector).attr('style') always return lowercase string
Diffstat (limited to 'src')
-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 + "" ); |