diff --git a/src/attributes.js b/src/attributes.js index 17c18c9b..f3d09516 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 ); } },