File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed
Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 11/*!
2- * Sizzle CSS Selector Engine v2.3.7
2+ * Sizzle CSS Selector Engine v2.3.8
33 * https://sizzlejs.com/
44 *
55 * Copyright JS Foundation and other contributors
66 * Released under the MIT license
77 * https://js.foundation/
88 *
9- * Date: 2022-10-03
9+ * Date: 2022-11-16
1010 */
1111( function ( window ) {
1212var i ,
@@ -987,7 +987,14 @@ setDocument = Sizzle.setDocument = function( node ) {
987987 // As in, an element does not contain itself
988988 contains = hasCompare || rnative . test ( docElem . contains ) ?
989989 function ( a , b ) {
990- var adown = a . nodeType === 9 ? a . documentElement : a ,
990+
991+ // Support: IE <9 only
992+ // IE doesn't have `contains` on `document` so we need to check for
993+ // `documentElement` presence.
994+ // We need to fall back to `a` when `documentElement` is missing
995+ // as `ownerDocument` of elements within `<template/>` may have
996+ // a null one - a default behavior of all modern browsers.
997+ var adown = a . nodeType === 9 && a . documentElement || a ,
991998 bup = b && b . parentNode ;
992999 return a === bup || ! ! ( bup && bup . nodeType === 1 && (
9931000 adown . contains ?
You can’t perform that action at this time.
0 commit comments