From c1c97b474ea7123fabd3e5f0b2192e967c48eb84 Mon Sep 17 00:00:00 2001 From: Oleg Date: Wed, 19 Dec 2012 20:27:42 +0400 Subject: Remove leading white space check --- src/manipulation.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/manipulation.js') diff --git a/src/manipulation.js b/src/manipulation.js index 32b5b5f81..e933ba08f 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,5 +1,4 @@ -var rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, +var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /" ); @@ -617,11 +615,6 @@ jQuery.extend({ tmp = tmp.lastChild; } - // Manually add leading whitespace removed by IE - if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - ret.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - // Remove IE's autoinserted from table fragments if ( !jQuery.support.tbody ) { -- cgit v1.2.3