Skip to content

parent and closest type discrepancies #2056

@EHadoux

Description

@EHadoux

Hey, is there a reason why parent(selector) returns a Cheerio<Element> and closest(selector) a Cheerio<Node>?
I imagine one would expect closest to be (in theory) a recursive parent.

This prevents (at compilation, without casting) the element to be a selector in functions like nextUntil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions