From: Oleg Date: Wed, 19 Dec 2012 16:30:13 +0000 (+0400) Subject: Remove tbody check X-Git-Tag: 2.0.0b1~59^2~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a2a82ba62c42a55302d5b938b31672b34ae390d;p=jquery.git Remove tbody check --- 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 from table fragments - if ( !jQuery.support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
" && !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 = "
a"; + div.innerHTML = "a"; // Support tests won't run in some limited or non-browser environments all = div.getElementsByTagName("*");