Skip to content

Commit

Permalink
Manipulation: use .children to select tbody elements
Browse files Browse the repository at this point in the history
- 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 8, 2018
1 parent 3a8e447 commit a88b48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a88b48e

Please sign in to comment.