Permalink
Browse files

Merge branch 'master' of git@github.com:jquery/jquery

  • Loading branch information...
2 parents 253e73a + 974b000 commit 5b51cc92fcb320dcb638718ea56c3f4806072c71 @jeresig jeresig committed Dec 11, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/attributes.js
View
@@ -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 );
}
},

0 comments on commit 5b51cc9

Please sign in to comment.