🌐 AI搜索 & 代理 主页
Skip to content

Commit a88b48e

Browse files
committed
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
1 parent 3a8e447 commit a88b48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/manipulation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function manipulationTarget( elem, content ) {
5252
if ( nodeName( elem, "table" ) &&
5353
nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
5454

55-
return jQuery( ">tbody", elem )[ 0 ] || elem;
55+
return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
5656
}
5757

5858
return elem;

0 commit comments

Comments
 (0)