diff options
author | Timmy Willison <4timmywil@gmail.com> | 2018-01-02 15:42:43 -0500 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2018-01-08 11:39:29 -0500 |
commit | a88b48eab1cdbb9dac05679a0d1c0edd7cc4afd7 (patch) | |
tree | a0f6a223136ac0847bfaa87089294ee32a0bcb6f /src | |
parent | 3a8e44745c014871bc56e94d91e57c45ae4be208 (diff) | |
download | jquery-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.js | 2 |
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; |