Re: [csswg-drafts] [selectors] The forgiving nature of :has breaks jQuery when used with a complex :has selector (#7676)

The current WebKit behavior (not by design) is to use forgiving parsing but fail the selector if the selectors lists ends up empty. That is

`:has(:foo, bar) { }`

is valid and parses to

`:has(bar) { }`

but 

`:has(:foo)` is invalid. 

Perhaps this is actually the best option considering the jQuery issue.

-- 
GitHub Notification of comment by anttijk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7676#issuecomment-1235450787 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 2 September 2022 12:36:34 UTC