Permalink
Browse files

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
  • Loading branch information...
timmywil committed Jan 2, 2018
1 parent 3a8e447 commit a88b48eab1cdbb9dac05679a0d1c0edd7cc4afd7
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit a88b48e

Please sign in to comment.