X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=741b13b53521f162760769a1530eeebbbe0585b1;hb=37407164803df62c4efb1332e7f94b56e693a108;hp=0ff52fa51cae7c27a954e1a517ac1f0137876b75;hpb=e647a8a1f63864aa350e8c24926170d0fdff653c;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 0ff52fa..741b13b 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1567,13 +1567,14 @@ jQuery.extend({ if ( fix[name] ) { if ( value != undefined ) elem[fix[name]] = value; return elem[fix[name]]; + } else if ( jQuery.browser.msie && name == "style" ) + return jQuery.attr( elem.style, "cssText", value ); - } else if ( value == undefined && jQuery.browser.msie && jQuery.nodeName(elem, "form") && (name == "action" || name == "method") ) + else if ( value == undefined && jQuery.browser.msie && jQuery.nodeName(elem, "form") && (name == "action" || name == "method") ) return elem.getAttributeNode(name).nodeValue; // IE elem.getAttribute passes even for style else if ( elem.tagName ) { - if ( value != undefined ) elem.setAttribute( name, value ); if ( jQuery.browser.msie && /href|src/.test(name) && !jQuery.isXMLDoc(elem) ) @@ -1850,6 +1851,7 @@ new function() { selected: "selected", maxlength: "maxLength" }; + }; /**