1 import { document } from "../var/document.js";
2 import { support } from "../var/support.js";
4 // Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only
5 // Make sure the `:has()` argument is parsed unforgivingly.
6 // We include `*` in the test to detect buggy implementations that are
7 // _selectively_ forgiving (specifically when the list includes at least
8 // one valid selector).
9 // Note that we treat complete lack of support for `:has()` as if it were
10 // spec-compliant support, which is fine because use of `:has()` in such
11 // environments will fail in the qSA path and fall back to jQuery traversal
14 document.querySelector( ":has(*,:jqfake)" );
15 support.cssHas = false;
17 support.cssHas = true;