You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[:has() pseudo-class] Use unforgiving parsing for selector list
https://bugs.webkit.org/show_bug.cgi?id=249914
rdar://103733208
Reviewed by Antti Koivisto.
Following CSSWG resolution: w3c/csswg-drafts#7676 (comment)
In order to unbreak jQuery.
* LayoutTests/imported/w3c/web-platform-tests/css/selectors/parsing/parse-has-expected.txt:
* Source/WebCore/css/parser/CSSSelectorParser.cpp:
(WebCore::CSSSelectorParser::consumeRelativeSelectorList):
(WebCore::CSSSelectorParser::consumePseudo):
(WebCore::CSSSelectorParser::consumeForgivingRelativeSelectorList): Deleted.
* Source/WebCore/css/parser/CSSSelectorParser.h:
Canonical link: https://commits.webkit.org/258712@main
Copy file name to clipboardExpand all lines: LayoutTests/imported/w3c/web-platform-tests/css/selectors/parsing/parse-has-expected.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,6 @@ PASS ".a:has" should be an invalid selector
27
27
PASS ".a:has b" should be an invalid selector
28
28
PASS ":has()" should be an invalid selector
29
29
PASS ":has(123)" should be an invalid selector
30
-
FAIL ":has(.a, 123)" should be an invalid selector assert_throws_dom: ":has(.a, 123)" should throw in querySelector function "() => document.querySelector(selector)" did not throw
30
+
PASS ":has(.a, 123)" should be an invalid selector
31
31
PASS ":has(:is(.a, 123))" should be a valid selector
0 commit comments