g-plane / typed-query-selector

Better typed `querySelector` and `querySelectorAll`.
https://www.npmjs.com/package/typed-query-selector
MIT License
729 stars 11 forks source link

Add support for :has() #21

Closed fregante closed 2 years ago

fregante commented 2 years ago

The selector isn't available anywhere yet, so maybe it's best to wait. But I wanted to open this issue to keep track of it

https://twitter.com/jensimmons/status/1473051429115940868?s=20

fregante commented 2 years ago

The selector is available in the public Safari 15.4 🙂

The good part is that :has() can be completely ignored because it does not affect the final type.

g-plane commented 2 years ago

It was already ignored as a pseudo class, so you can try it now.