]> source.dussan.org Git - jquery.git/commitdiff
Remove tbody check
authorOleg <markelog@gmail.com>
Wed, 19 Dec 2012 16:30:13 +0000 (20:30 +0400)
committerOleg <markelog@gmail.com>
Sun, 23 Dec 2012 23:03:19 +0000 (03:03 +0400)
src/manipulation.js
src/support.js

index e933ba08ffc8b43770c171bceb94bb2dd626b0bb..d2f17b87d89acb066816d6fa50885c896bb6c22a 100644 (file)
@@ -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
index 953564013160ca50c2dd81744ee9b6c66ef2afb3..f55cc6ae826323fcd4f85daddc2ef96f052d19b2 100644 (file)
@@ -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("*");