Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No utility for creating a selector from a root and a leaf node. #14

Closed
lifeiscontent opened this issue Feb 3, 2018 · 1 comment
Closed
Labels
🙋 no/question This does not need any changes

Comments

@lifeiscontent
Copy link

lifeiscontent commented Feb 3, 2018

@wooorm is there a utility to build a selector if you pass it a root and a leaf node?

e.g. buildSelector(root, node); // returns 'html > body > div:nth-child(1) > h1'

I'm creating a tree component that displays the AST and when you click on a node, it selects the selected nodes of the AST. and I'm wondering how to create the selector needed for the select util.

@wooorm
Copy link
Member

wooorm commented Feb 3, 2018

Nice! Nope, not yet! You could open an issue in the ideas repo for new utility ideas (whether or not you’d like to work on it!)

Plus that sounds 👍 Let me know by discussing there if you need help, and how I can help!

@wooorm wooorm closed this as completed Feb 3, 2018
@wooorm wooorm added the 🙋 no/question This does not need any changes label Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes
Development

No branches or pull requests

2 participants