I can't realize how to get parent of current node in walk()/match().
My use case is following:
- Find all
inputs.
- Check it against simple contraints: it must have
form in one of it's parents and it must have label among it's siblings.
- If constraints are not met, throw an error.
Currently I can find inputs with match(), but how do I check it has form parent?
I can't realize how to get parent of current node in
walk()/match().My use case is following:
inputs.formin one of it's parents and it must havelabelamong it's siblings.Currently I can find
inputs withmatch(), but how do I check it hasformparent?