Skip to content

Support for :has pseudo selector #482

@binarytemple

Description

@binarytemple

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions