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

Commit 7d92424

Browse files
dangkyokhoanggibson042
authored andcommitted
Core: Throw a better error when documentElement is missing
Closes gh-439
1 parent f27f9ff commit 7d92424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sizzle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ setDocument = Sizzle.setDocument = function( node ) {
579579
doc = node ? node.ownerDocument || node : preferredDoc;
580580

581581
// Return early if doc is invalid or already selected
582-
if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
582+
if ( doc === document || doc.nodeType !== 9 ) {
583583
return document;
584584
}
585585

0 commit comments

Comments
 (0)