Commit 5b51cc92 authored by John Resig's avatar John Resig

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

parents 253e73af 974b0007
...@@ -163,8 +163,8 @@ jQuery.fn.extend({ ...@@ -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 );
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment