kuchiki-rs / kuchiki

(朽木) HTML/XML tree manipulation library for Rust
MIT License
470 stars 54 forks source link

Pseudo class selector support #43

Closed laplaceon closed 1 year ago

laplaceon commented 6 years ago

Is it possible to add support for selectors like "div.class p:has(span.something:contains(SomeText)) a" which have pseudo class selectors like ":has" and ":contains"?

SimonSapin commented 6 years ago

It is possible. I have no plan to work on this, however.

(:has is specified at https://drafts.csswg.org/selectors/#relational, but :contains appears to be non-standard.)

SimonSapin commented 1 year ago

I will soon archive this repository and make it read-only, so this issue will not be addressed: https://github.com/kuchiki-rs/kuchiki#archived