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

Seeing this late, but what about slightly changing how `<forgiving-selector-list>` / `<forgiving-relative-selector-list>` so that the whole list if is still invalid if ALL of its selectors are invalid, i.e. not allowing the list to be empty after removing invalid selectors? 

That still allows it to cater to the use cases it was created for, where some selectors in the list are valid and some are not, but would mitigate most (not all) cases of jQuery breakage, and I'd argue it's better DX, as it's more consistent with expectation (I was surprised that a single argument that is invalid did not cause the selector to fail)

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


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

Received on Wednesday, 7 December 2022 14:34:36 UTC