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 #205

Open
gordielachance opened this issue Dec 12, 2019 · 1 comment
Open

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

gordielachance opened this issue Dec 12, 2019 · 1 comment

Comments

@gordielachance
Copy link

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.

@meglio
Copy link

meglio commented Jul 18, 2020

Has this been fixed / improved since then?

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