We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27f9ff commit 7d92424Copy full SHA for 7d92424
src/sizzle.js
@@ -579,7 +579,7 @@ setDocument = Sizzle.setDocument = function( node ) {
579
doc = node ? node.ownerDocument || node : preferredDoc;
580
581
// Return early if doc is invalid or already selected
582
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
+ if ( doc === document || doc.nodeType !== 9 ) {
583
return document;
584
}
585
0 commit comments