diff options
author | Oleg <markelog@gmail.com> | 2012-12-19 20:30:13 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2012-12-24 03:03:19 +0400 |
commit | 7a2a82ba62c42a55302d5b938b31672b34ae390d (patch) | |
tree | 864a7bb593bf27354a9da7eed25c97acc2512cbe | |
parent | c1c97b474ea7123fabd3e5f0b2192e967c48eb84 (diff) | |
download | jquery-7a2a82ba62c42a55302d5b938b31672b34ae390d.tar.gz jquery-7a2a82ba62c42a55302d5b938b31672b34ae390d.zip |
Remove tbody check
-rw-r--r-- | src/manipulation.js | 20 | ||||
-rw-r--r-- | src/support.js | 2 |
2 files changed, 1 insertions, 21 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index e933ba08f..d2f17b87d 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -615,26 +615,6 @@ jQuery.extend({ tmp = tmp.lastChild; } - // Remove IE's autoinserted <tbody> from table fragments - if ( !jQuery.support.tbody ) { - - // String was a <table>, *may* have spurious <tbody> - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare <thead> or <tfoot> - wrap[1] === "<table>" && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { - elem.removeChild( tbody ); - } - } - } - jQuery.merge( ret, tmp.childNodes ); // Fix #12392 for WebKit and IE > 9 diff --git a/src/support.js b/src/support.js index 953564013..f55cc6ae8 100644 --- a/src/support.js +++ b/src/support.js @@ -5,7 +5,7 @@ jQuery.support = (function() { // Setup div.setAttribute( "className", "t" ); - div.innerHTML = "<table></table><a href='/a'>a</a><input type='checkbox'/>"; + div.innerHTML = "<a href='/a'>a</a><input type='checkbox'/>"; // Support tests won't run in some limited or non-browser environments all = div.getElementsByTagName("*"); |