kuchiki-rs / kuchiki

(朽木) HTML/XML tree manipulation library for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pseudo class selector support

laplaceon opened this issue · comments

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"?

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.)

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