diff options
author | Oleg <markelog@gmail.com> | 2012-12-19 20:27:42 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2012-12-24 03:03:19 +0400 |
commit | c1c97b474ea7123fabd3e5f0b2192e967c48eb84 (patch) | |
tree | 0a86b8f94b465d422aa16b468ed279b87be352b9 /src/manipulation.js | |
parent | fd2af63bcab60693c79d482724db6ca291132e2a (diff) | |
download | jquery-c1c97b474ea7123fabd3e5f0b2192e967c48eb84.tar.gz jquery-c1c97b474ea7123fabd3e5f0b2192e967c48eb84.zip |
Remove leading white space check
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 9 |
1 files changed, 1 insertions, 8 deletions
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 = /<tbody/i, rhtml = /<|&#?\w+;/, @@ -195,7 +194,6 @@ jQuery.fn.extend({ // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { value = value.replace( rxhtmlTag, "<$1></$2>" ); @@ -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 <tbody> from table fragments if ( !jQuery.support.tbody ) { |