X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=e1840a6bf4c75f4ebfd512b4e6f0663ac3d318a6;hb=c66935db9d6068087f1fca83626db0b9280343e2;hp=cdd614c2fb48d7250d806da665d4b532194eb0e1;hpb=980b5d72dba596483be586a276d3a385519ee7ef;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index cdd614c..e1840a6 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1280,7 +1280,7 @@ jQuery.extend({ prop: function(elem, value, type, index, prop){ // Handle executable functions if ( jQuery.isFunction( value ) ) - return value.call( elem, [index] ); + value = value.call( elem, [index] ); // exclude the following css properties to add px var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; @@ -1525,7 +1525,8 @@ jQuery.extend({ // IE elem.getAttribute passes even for style else if ( elem.tagName ) { if ( value != undefined ) elem.setAttribute( name, value ); - if ( name == "href" && jQuery.browser.msie && !jQuery.isXMLDoc(elem) ) return elem.getAttribute( name, 2 ); + if ( jQuery.browser.msie && /href|src/.test(name) && !jQuery.isXMLDoc(elem) ) + return elem.getAttribute( name, 2 ); return elem.getAttribute( name ); // elem is actually elem.style ... set the style