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

not working: ->find() method with direct child selector #1

Closed
jakejackson1 opened this issue Dec 7, 2022 · 1 comment
Closed

not working: ->find() method with direct child selector #1

jakejackson1 opened this issue Dec 7, 2022 · 1 comment

Comments

@jakejackson1
Copy link
Member

From querypath created by gordielachance: technosophos/querypath#205

On an item node like this one,

<item>
    <artist>
        <name>Niagara</name>
    </artist>
    <name>Pendant que les champs brûlent</name>
</item>

$node->find('> name');

gets those nodes

<name>Niagara</name>

<name>Pendant que les champs brûlent</name>

while it should only get this one

<name>Pendant que les champs brûlent</name>

Is that a bug ?

I could use

$node->children('name');

But I want to be able to select NOT only direct descendants.

How could I do ?
Thanks.

@jakejackson1
Copy link
Member Author

Has this been fixed / improved since then?

@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant