Modify ↓
Ticket #9458 (closed bug: invalid)
:not() selector problem?
| Reported by: | johnfirth2@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
With regard to this http://stackoverflow.com/questions/1730609/using-jquery-not-selector-to-exclude-elements-with-particular-children/6157579#6157579
the first suggestion in Russ Cam's post, i.e:
$("div.divToAppendTo:not(div > span.myAppendedMarkup)")
doesn't seem to work. It selects all the divs rather than just those without the span child. I don't, however, understand why it doesn't work, so I'm raising it as a possible bug.
Hope I'm not wasting your time.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

http://jsfiddle.net/Joffer/N9Kqe/