From 638c093b857197c0b25bd8b1ba5a9b00f82b39d5 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 11 Dec 2009 12:47:41 -0800 Subject: Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f. --- src/attributes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/attributes.js') diff --git a/src/attributes.js b/src/attributes.js index 9c868ee03..0a60b0d74 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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 ); } }, -- cgit v1.2.3