Skip to content

Child selectors is not work #7

@yokotoka

Description

@yokotoka

In jsonselect not work first-child, nth-child, etc.
example:

from jsonselect import select

test_dict = {
    'a': 1,
    'b': 2,
    'c': [ 4, 5, 6, 7 ]
}


print select('.c :first-child',  test_dict)
print select('.c:first-child',   test_dict)
print select('.c :nth-child(2)', test_dict)
print select('.c:nth-child(2)',  test_dict)

returns:

None
None
None
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions