Open adtac opened 1 year ago
This would be really useful to add.
I believe this project uses kuchiki under the hood which in turn uses the servo selectors crate.
This is the upstream issue to add support for :has
in servo selectors: https://github.com/servo/servo/issues/25133
FYI for anyone else looking for an alternative solution that supports :has
.
This feature is also currently not supported by pup
: https://github.com/ericchiang/pup/issues/194
It is however supported by python's soupsieve (dependency of beautifulsoup4) as one can see here:
Minimal repro:
Expected output:
<div><h1>h1</h1></div>
This was on macOS (ARM), but I could also reproduce it in Linux (x86). I don't have any other OS/arch to test on.