Side navigation
#14044 closed bug (duplicate)
Opened June 19, 2013 11:13PM UTC
Closed June 19, 2013 11:41PM UTC
$('#root').find(':not(#nested) > li') fails
Reported by: | ngryman | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 2.0.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This selector fails with the following html structure:
<ul id="root"> <ul id="nested"> <li></li> </ul> <li></li> <li></li> </ul>
The QSA version works fine.
But if I change the container to a superior level (i.e. body) this works fine:
$('body').find(':not(#nested) > li')
It seems this selector does not work with direct children.
Here is a jsfiddle that illustrates the bug : http://jsfiddle.net/ngryman/tsw4b/.
It fails for any version of jQuery.
Thanks.
Attachments (0)
Change History (1)
Changed June 19, 2013 11:41PM UTC by comment:1
resolution: | → duplicate |
---|---|
status: | new → closed |
Duplicate of #14043.