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

:first-child does not behave like the demo #5

Closed
progval opened this issue Mar 22, 2015 · 2 comments
Closed

:first-child does not behave like the demo #5

progval opened this issue Mar 22, 2015 · 2 comments

Comments

@progval
Copy link
Contributor

progval commented Mar 22, 2015

On the demo website you can do .drinkPreference :first-child to get the first child, whatever its type ("whiskey").

However, this implementation does not behave this way: unless a type is given, it does not return anything.

$ python -m jsonselect ".drinkPreference :first-child" conformance_tests/upstream/level_1/basic.json
$ python -m jsonselect ".drinkPreference string:first-child" conformance_tests/upstream/level_1/basic.json
"beer"
@progval
Copy link
Contributor Author

progval commented Mar 22, 2015

Update: I edited my initial message to make it clearer what the issue is

@mwhooker
Copy link
Owner

Dupe of #1

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

No branches or pull requests

2 participants