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

Fix 780 #1

Merged
merged 2 commits into from
Jan 27, 2016
Merged

Fix 780 #1

merged 2 commits into from
Jan 27, 2016

Conversation

adelgado
Copy link
Owner

Merge fix from cheeriojs#796

Delgan and others added 2 commits January 2, 2016 12:10
This test case is intended to highlight two unwanted behaviors:
- The first one is related to issue cheeriojs#742. While using css-select v1.0.0, the child selector '>' would also include indirect descendants and this test case would return '3'.
- The second issue (discussed here: cheeriojs#780 (comment) ) comes while using css-select v1.2.0. In such a case, the context of the '>' selector is the first 'bar' and not 'foo' as intended, which causes a resulting length of '2'.
The issue, after upgrading css-select to v1.2.0, was due to an improper
context of options passed to 'CSSselect()'.
adelgado added a commit that referenced this pull request Jan 27, 2016
@adelgado adelgado merged commit b1a9db7 into adelgado:master Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants