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

Bugfix for using general sibling selector on root #1698

Merged
merged 2 commits into from
Jun 30, 2018

Conversation

krawaller
Copy link

Right now .find('#foo ~ #bar') will throw an error if #foo matches the root element.

This PR adds test and the missing parent check that caused the problem.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is great!

@ljharb ljharb added this to Open in Make string selectors awesome via automation Jun 29, 2018
@ljharb ljharb force-pushed the bugfix/general_sibling_root branch from b2d3d8b to 0d446f4 Compare June 29, 2018 23:25
@ljharb ljharb merged commit 0d446f4 into enzymejs:master Jun 30, 2018
Make string selectors awesome automation moved this from Open to Closed/Merged Jun 30, 2018
@ljharb
Copy link
Member

ljharb commented Aug 6, 2018

@krawaller btw you should add the email address you used on these commits to your github account, so you can be linked to the commits.

@krawaller
Copy link
Author

Oh, right! Done, thank you @ljharb!

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

Successfully merging this pull request may close these issues.

None yet

2 participants