Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Hot to get parent of current node in walk() #226

Copy link
Copy link
@cronfy

Description

@cronfy
Issue body actions

I can't realize how to get parent of current node in walk()/match().

My use case is following:

  1. Find all inputs.
  2. Check it against simple contraints: it must have form in one of it's parents and it must have label among it's siblings.
  3. If constraints are not met, throw an error.

Currently I can find inputs with match(), but how do I check it has form parent?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.