mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Normalize css property names to lowercase for comparisons on a .attr('style') call since IE uppercases everything
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user