jquery core: don't let .attr() set style for xml.

This commit is contained in:
Ariel Flesler 2008-05-13 00:42:12 +00:00
parent e9b2781d30
commit 70b5e670ca

View File

@ -1071,7 +1071,7 @@ jQuery.extend({
return elem[ name ]; return elem[ name ];
} }
if ( msie && name == "style" ) if ( msie && notxml && name == "style" )
return jQuery.attr( elem.style, "cssText", value ); return jQuery.attr( elem.style, "cssText", value );
if ( set ) if ( set )