From a88b48eab1cdbb9dac05679a0d1c0edd7cc4afd7 Mon Sep 17 00:00:00 2001 From: Timmy Willison <4timmywil@gmail.com> Date: Tue, 2 Jan 2018 15:42:43 -0500 Subject: [PATCH] Manipulation: use `.children` to select tbody elements - selectors beginning with a child combinator are not valid natively. This fixes the tests when using selector-native.js --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index c30100ff8..50ec9f1cb 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -52,7 +52,7 @@ function manipulationTarget( elem, content ) { if ( nodeName( elem, "table" ) && nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - return jQuery( ">tbody", elem )[ 0 ] || elem; + return jQuery( elem ).children( "tbody" )[ 0 ] || elem; } return elem; -- 2.39.5