Reverted accidental commit in 5197ac9fc8aa71c2ebc0d7217f41a3679eb1b902.
[jquery.git] / src / attributes.js
index 17c18c9..f3d0951 100644 (file)
@@ -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 );
                }
        },