]> source.dussan.org Git - jquery.git/commitdiff
Fixed typo in commit #6461.
authorJohn Resig <jeresig@gmail.com>
Sun, 19 Jul 2009 15:51:00 +0000 (15:51 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 19 Jul 2009 15:51:00 +0000 (15:51 +0000)
src/manipulation.js

index 237e957e56fdb552f2b17edde0e9aca82b555310..0051bbc0b343452c931a2cd99abdcb588dbd8167 100644 (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 );