dperini / nwsapi

Fast CSS Selectors API Engine
MIT License
103 stars 35 forks source link

Add `:has()` selector pseudo-class #87

Closed Rondinelly closed 1 year ago

Rondinelly commented 1 year ago

Related https://github.com/jsdom/jsdom/issues/3506

dperini commented 1 year ago

@Rondinelly thank you for the contribution. The .has() selector was planned I just missed the announce to make in the latest w3specs. This is a very useful selector for many developers.

The Regular Expression used to parse the arguments is not the best yet but will improve soon having now more testers..