Fixed typo in commit #6461.

This commit is contained in:
John Resig 2009-07-19 15:51:00 +00:00
parent 6d23f2fd81
commit 0ac9898d6b

View file

@ -370,8 +370,8 @@ jQuery.extend({
}
// IE completely kills leading whitespace when innerHTML is used
if ( !jQuery.support.leadingWhitespace && leadingWhitespace.test( elem ) ) {
div.insertBefore( context.createTextNode( leadingWhitespace.exec(elem)[0] ), div.firstChild );
if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
}
elem = jQuery.makeArray( div.childNodes );