diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-12-19 19:00:26 +0100 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-12-19 19:00:26 +0100 |
commit | 8989500e6c695d10806400d20381da4d1ed34a7b (patch) | |
tree | c38fdf4b8b5a91c796a3d1f283a744804b68d02e /external/sizzle/dist/sizzle.js | |
parent | 2c5b47c4def78e447d2eb97a6f382e2b713165f8 (diff) | |
download | jquery-8989500e6c695d10806400d20381da4d1ed34a7b.tar.gz jquery-8989500e6c695d10806400d20381da4d1ed34a7b.zip |
Selector: Update Sizzle from 2.3.8 to 2.3.9
Fixes gh-5177
Ref gh-5178
Ref jquery/sizzle#491
Diffstat (limited to 'external/sizzle/dist/sizzle.js')
-rw-r--r-- | external/sizzle/dist/sizzle.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/external/sizzle/dist/sizzle.js b/external/sizzle/dist/sizzle.js index f6cf278ac..c1978cd04 100644 --- a/external/sizzle/dist/sizzle.js +++ b/external/sizzle/dist/sizzle.js @@ -1,12 +1,12 @@ /*! - * Sizzle CSS Selector Engine v2.3.8 + * Sizzle CSS Selector Engine v2.3.9 * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://js.foundation/ * - * Date: 2022-11-16 + * Date: 2022-12-19 */ ( function( window ) { var i, @@ -367,7 +367,7 @@ function Sizzle( selector, context, results, seed ) { if ( support.cssSupportsSelector && // eslint-disable-next-line no-undef - !CSS.supports( "selector(" + newSelector + ")" ) ) { + !CSS.supports( "selector(:is(" + newSelector + "))" ) ) { // Support: IE 11+ // Throw to get to the same code path as an error directly in qSA. @@ -969,9 +969,8 @@ setDocument = Sizzle.setDocument = function( node ) { // `:has()` uses a forgiving selector list as an argument so our regular // `try-catch` mechanism fails to catch `:has()` with arguments not supported // natively like `:has(:contains("Foo"))`. Where supported & spec-compliant, - // we now use `CSS.supports("selector(SELECTOR_TO_BE_TESTED)")` but outside - // that, let's mark `:has` as buggy to always use jQuery traversal for - // `:has()`. + // we now use `CSS.supports("selector(:is(SELECTOR_TO_BE_TESTED))")`, but + // outside that we mark `:has` as buggy. rbuggyQSA.push( ":has" ); } |