Skip to content

closest(): leading combinator selectors not supported #1134

Open
@timmywil

Description

@timmywil

We intentionally added a guard against selectors needing context. The weirdness around inferring context in a call to .closest led to the decision that this should not be supported. We need a note in the docs explaining that invalid selectors requiring context, such as leading combinators (> *) or positional selectors (:first, :eq, etc.) should not be passed to this function.

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