Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f.
[jquery.git] / src / attributes.js
index 9c868ee..0a60b0d 100644 (file)
@@ -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 );
                }
        },