floki icon indicating copy to clipboard operation
floki copied to clipboard

Support for :has pseudo selector

Open binarytemple opened this issue 2 years ago • 0 comments

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

binarytemple avatar Sep 08 '23 22:09 binarytemple