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

Add nested CSS Selector support #23

Closed
lelandrichardson opened this issue Nov 16, 2015 · 4 comments
Closed

Add nested CSS Selector support #23

lelandrichardson opened this issue Nov 16, 2015 · 4 comments

Comments

@lelandrichardson
Copy link
Collaborator

For example:

wrapper.find('.foo .bar')
@ljharb
Copy link
Member

ljharb commented Nov 16, 2015

ideally also .find('.foo > .bar'), and .find('.foo, .bar') :-)

@lelandrichardson
Copy link
Collaborator Author

@ljharb actually, .foo, .bar is already supported. But yes, ideally we'd also have .foo > .bar and also potentially .foo + .bar and .foo ~ .bar

Edit: Whoops. It's not. Sorry. I did actually start implementing commas though... just never finished.

@badeball
Copy link

badeball commented Dec 4, 2015

Hi, @lelandrichardson

I've actually been thinking for a while about creating a CSS selector engine for the virtual DOM of React. Particularly because I recently released a DOM-agnostic XPath implementation that also works on it (which I personally have found to be very useful for the purpose of testing). Perhaps this can be of use to you?

dustinsanders added a commit to dustinsanders/enzyme that referenced this issue Feb 24, 2016
@blainekasten
Copy link
Contributor

Closing issue as PR has been merged! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants