aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <4timmywil@gmail.com>2018-01-02 15:42:43 -0500
committerTimmy Willison <4timmywil@gmail.com>2018-01-08 11:39:29 -0500
commita88b48eab1cdbb9dac05679a0d1c0edd7cc4afd7 (patch)
treea0f6a223136ac0847bfaa87089294ee32a0bcb6f /src
parent3a8e44745c014871bc56e94d91e57c45ae4be208 (diff)
downloadjquery-a88b48eab1cdbb9dac05679a0d1c0edd7cc4afd7.tar.gz
jquery-a88b48eab1cdbb9dac05679a0d1c0edd7cc4afd7.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
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;