aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-04-03 18:47:44 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-03 19:13:41 -0400
commit6f79bee3e3ea874f27389a7e691c1bd7541f2ef6 (patch)
treef42d4ad51a114fd69d65287f25a847fe80364769 /src/attributes.js
parentad2b3bc9f908a8e529c4479c8c9baead23c2d827 (diff)
downloadjquery-6f79bee3e3ea874f27389a7e691c1bd7541f2ef6.tar.gz
jquery-6f79bee3e3ea874f27389a7e691c1bd7541f2ef6.zip
Normalize css property names to lowercase for comparisons on a .attr('style') call since IE uppercases everything
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js
index ced9977e4..15d4d50e0 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -477,7 +477,8 @@ if ( !jQuery.support.style ) {
jQuery.attrHooks.style = {
get: function( elem ) {
// Return undefined in the case of empty string
- return elem.style.cssText || undefined;
+ // Normalize to lowercase since IE uppercases css property names
+ return elem.style.cssText.toLowerCase() || undefined;
},
set: function( elem, value ) {
return (elem.style.cssText = "" + value);