Selector: Update Sizzle from 2.3.7 to 2.3.8

Fixes gh-5147
Ref gh-5158
Ref jquery/sizzle#490
This commit is contained in:
Michał Gołębiowski-Owczarek 2022-11-16 16:56:10 +01:00 committed by Michał Gołębiowski-Owczarek
parent 28241b7f92
commit a1b7ae3b3f
4 changed files with 14 additions and 7 deletions

View File

@ -1,12 +1,12 @@
/*! /*!
* Sizzle CSS Selector Engine v2.3.7 * Sizzle CSS Selector Engine v2.3.8
* https://sizzlejs.com/ * https://sizzlejs.com/
* *
* Copyright JS Foundation and other contributors * Copyright JS Foundation and other contributors
* Released under the MIT license * Released under the MIT license
* https://js.foundation/ * https://js.foundation/
* *
* Date: 2022-10-03 * Date: 2022-11-16
*/ */
( function( window ) { ( function( window ) {
var i, var i,
@ -987,7 +987,14 @@ setDocument = Sizzle.setDocument = function( node ) {
// As in, an element does not contain itself // As in, an element does not contain itself
contains = hasCompare || rnative.test( docElem.contains ) ? contains = hasCompare || rnative.test( docElem.contains ) ?
function( a, b ) { 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 `<template/>` may have
// a null one - a default behavior of all modern browsers.
var adown = a.nodeType === 9 && a.documentElement || a,
bup = b && b.parentNode; bup = b && b.parentNode;
return a === bup || !!( bup && bup.nodeType === 1 && ( return a === bup || !!( bup && bup.nodeType === 1 && (
adown.contains ? adown.contains ?

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -61,7 +61,7 @@
"raw-body": "2.3.3", "raw-body": "2.3.3",
"requirejs": "2.3.6", "requirejs": "2.3.6",
"sinon": "2.3.7", "sinon": "2.3.7",
"sizzle": "2.3.7", "sizzle": "2.3.8",
"strip-json-comments": "2.0.1", "strip-json-comments": "2.0.1",
"testswarm": "1.1.2", "testswarm": "1.1.2",
"uglify-js": "3.4.7" "uglify-js": "3.4.7"