Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:jquery/jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Dec 11, 2009
2 parents 253e73a + 974b000 commit 5b51cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attributes.js
Expand Up @@ -163,8 +163,8 @@ jQuery.fn.extend({


jQuery.each({ jQuery.each({
removeAttr: function( name ) { 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 ); this.removeAttribute( name );
} }
}, },
Expand Down

0 comments on commit 5b51cc9

Please sign in to comment.