X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=f3d09516d9dcb4c16c055a229763f547b1acfa9a;hb=f078e930edb25190bb04c682ad067b72331b6e69;hp=17c18c9bf3cab6094dbb71d10ff50b36823c31d1;hpb=649024909d376032e6e9c41f209182d584e51043;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 17c18c9..f3d0951 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -165,8 +165,8 @@ jQuery.fn.extend({ jQuery.each({ removeAttr: function( name ) { + jQuery.attr( this, name, "" ); if ( this.nodeType === 1 ) { - this[ jQuery.isXMLDoc( this ) ? name : jQuery.props[ name ] || name ] = null; this.removeAttribute( name ); } },