esquery
esquery copied to clipboard
How do I get the ancestor list?
The closest I could find is discusssed here but the pull request is not merged. https://github.com/estools/esquery/pull/45
In dom, once I get a node via css selector, I always have a parentNode property to trace up to the root of the tree.