Skip to content

parentsUntil does not work if parent id is used and includes "#" #760

Closed
@DrifterAtSea

Description

@DrifterAtSea

The code example shows the following:

$( "span.subchild" ).parentsUntil( "div.grandparent" );

If the grandparent's id is used instead, you cannot use "#". Example:

$( "span.subchild" ).parentsUntil( "#grandpa");

But it will find it if you leave out the "#":

$( "span.subchild" ).parentsUntil( "grandpa");

This is inconsistent with the way selecting elements by id works with jQuery. Either fix this or indicate this issue in the documentation.

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