X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=0a60b0d74bb41e88def55c26e25209e13dace58b;hb=638c093b857197c0b25bd8b1ba5a9b00f82b39d5;hp=9c868ee0359dd1e155415cbc11b606da3bb75e2e;hpb=65ebf57c1e5d7fa96536b66d4fcacbafad8dc1e5;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 9c868ee..0a60b0d 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -163,8 +163,8 @@ jQuery.fn.extend({ jQuery.each({ removeAttr: function( name ) { - jQuery.attr( this, name, "" ); - if (this.nodeType == 1) { + if ( this.nodeType === 1 ) { + this[ jQuery.isXMLDoc( this ) ? name : jQuery.props[ name ] || name ] = null; this.removeAttribute( name ); } },