Merge branch 'master' of git@github.com:jquery/jquery
This commit is contained in:
commit
5b51cc92fc
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue