Skip to content

Make children select work as it should #174

@feliupe

Description

@feliupe

I have a question:

Sorry if I misunderstood the way it should work. I have the following html:

<div class='Item'>
  <span>Span #1, in the div.
    A
   <div class='Item'>   <span>B</span> </div>
  </span>
</div>

and my test as:

wrapper.find('.Item > span').length == 1 // and  'should' be true but it returns 2

This is not how the css selector should behave?

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