floki
floki copied to clipboard
Support for :has pseudo selector
Feature goal
(From JSoup docs)
:has(selector): find elements that contain elements matching the selector; e.g. div:has(p)
input = “<div><p>foo</p><h2>$100</h2></div><div><h1>foo</h1></div>”
result = Floki.find(html, “div:has(p) > h2”)