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

Commit ca028f3

Browse files
committed
Selector: Add a support comment
1 parent 89798cf commit ca028f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/selector.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,9 @@ setDocument = Sizzle.setDocument = function( node ) {
558558
var adown = a.nodeType === 9 ? a.documentElement : a,
559559
bup = b && b.parentNode;
560560
return a === bup || !!( bup && bup.nodeType === 1 && (
561+
562+
// Support: IE 9 - 11+
563+
// IE doesn't have `contains` on SVG.
561564
adown.contains ?
562565
adown.contains( bup ) :
563566
a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16

0 commit comments

Comments
 (0)