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

@andruud 
> We could query HTTP Archive. What are we looking for?
> 
>     * `:has(.*:contains.*)`
> 
>     * What else?

Any jQuery-specific pseudo inside of `:has()`, including:
* positional pseudos: `:first`, `:last`, `:eq`, `:even`, `:odd`, `:lt`, `:gt`, and `:nth`
* other jQuery-specific ones: `:contains`, `:parent`, `:header`, `:input`, `:button`, `:text`, `:radio`, `:checkbox`, `:file`, `:password`, `:image`, `:submit`, `:reset`, `:animated` - I think those are not available natively
* native ones but not available in `:has` natively: `:has` (yes, nested), `:not`

There are other native ones also implemented by jQuery but those are probably fine? `:lang`, `:target`, `:root`, `:focus`, `:enabled`, `:disabled`, `:checked`, `:selected`, `:empty`



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


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

Received on Tuesday, 6 September 2022 09:03:00 UTC