Skip to content

Commit 5b51cc9

Browse files
committed
Merge branch 'master' of [email protected]:jquery/jquery
2 parents 253e73a + 974b000 commit 5b51cc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ jQuery.fn.extend({
163163

164164
jQuery.each({
165165
removeAttr: function( name ) {
166-
jQuery.attr( this, name, "" );
167-
if (this.nodeType == 1) {
166+
if ( this.nodeType === 1 ) {
167+
this[ jQuery.isXMLDoc( this ) ? name : jQuery.props[ name ] || name ] = null;
168168
this.removeAttribute( name );
169169
}
170170
},

0 commit comments

Comments
 (0)