diff --git a/external/sizzle/dist/sizzle.js b/external/sizzle/dist/sizzle.js index dd4c815c67..f6cf278ac1 100644 --- a/external/sizzle/dist/sizzle.js +++ b/external/sizzle/dist/sizzle.js @@ -1,12 +1,12 @@ /*! - * Sizzle CSS Selector Engine v2.3.7 + * Sizzle CSS Selector Engine v2.3.8 * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://js.foundation/ * - * Date: 2022-10-03 + * Date: 2022-11-16 */ ( function( window ) { var i, @@ -987,7 +987,14 @@ setDocument = Sizzle.setDocument = function( node ) { // As in, an element does not contain itself contains = hasCompare || rnative.test( docElem.contains ) ? function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, + + // Support: IE <9 only + // IE doesn't have `contains` on `document` so we need to check for + // `documentElement` presence. + // We need to fall back to `a` when `documentElement` is missing + // as `ownerDocument` of elements within `