You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, do you plan to support the :has() selector? To my understanding, this css keyword is needed for selecting objects based on the parent of another known object.
Consider the following example:
<div><divid="foo">
Hi There!
</div></div><ul><li>first</li><li>second</li><li>third</li></ul>
In order to select the second list item, I would like to use the following selector:
let selector = Selector::parse("div:has(div#foo) + ul > li:nth-child(2)").unwrap();
This line however panics as of scraper version 0.18.1.
The text was updated successfully, but these errors were encountered:
This selector: h2:has(#Registered_ports) ~ .wikitable.sortable would pick the first table after this h2, which is a good way to locate the content in lieu of a distinctive id/class on the table itself.
Hi, do you plan to support the
:has()
selector? To my understanding, this css keyword is needed for selecting objects based on the parent of another known object.Consider the following example:
In order to select the second list item, I would like to use the following selector:
This line however panics as of
scraper
version 0.18.1.The text was updated successfully, but these errors were encountered: