|
1 | 1 | /*!
|
2 |
| - * Sizzle CSS Selector Engine v2.3.8 |
| 2 | + * Sizzle CSS Selector Engine v2.3.9 |
3 | 3 | * https://sizzlejs.com/
|
4 | 4 | *
|
5 | 5 | * Copyright JS Foundation and other contributors
|
6 | 6 | * Released under the MIT license
|
7 | 7 | * https://js.foundation/
|
8 | 8 | *
|
9 |
| - * Date: 2022-11-16 |
| 9 | + * Date: 2022-12-19 |
10 | 10 | */
|
11 | 11 | (function(window){
|
12 | 12 | vari,
|
@@ -367,7 +367,7 @@ function Sizzle( selector, context, results, seed ) {
|
367 | 367 | if(support.cssSupportsSelector&&
|
368 | 368 |
|
369 | 369 | // eslint-disable-next-line no-undef
|
370 |
| -!CSS.supports("selector("+newSelector+")")){ |
| 370 | +!CSS.supports("selector(:is("+newSelector+"))")){ |
371 | 371 |
|
372 | 372 | // Support: IE 11+
|
373 | 373 | // Throw to get to the same code path as an error directly in qSA.
|
@@ -969,9 +969,8 @@ setDocument = Sizzle.setDocument = function( node ) {
|
969 | 969 | // `:has()` uses a forgiving selector list as an argument so our regular
|
970 | 970 | // `try-catch` mechanism fails to catch `:has()` with arguments not supported
|
971 | 971 | // natively like `:has(:contains("Foo"))`. Where supported & spec-compliant,
|
972 |
| -// we now use `CSS.supports("selector(SELECTOR_TO_BE_TESTED)")` but outside |
973 |
| -// that, let's mark `:has` as buggy to always use jQuery traversal for |
974 |
| -// `:has()`. |
| 972 | +// we now use `CSS.supports("selector(:is(SELECTOR_TO_BE_TESTED))")`, but |
| 973 | +// outside that we mark `:has` as buggy. |
975 | 974 | rbuggyQSA.push(":has");
|
976 | 975 | }
|
977 | 976 |
|
|