Opened 5 years ago
Closed 5 years ago
#12541 closed bug (fixed)
1.8.0 and 1.8.1: Double :not() selector fails in IE6/7
| Reported by: | Owned by: | gibson042 | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.8.2 |
| Component: | selector | Version: | 1.8.0 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
$('div.list').find( 'dd:not(:last-child), li:not(:last-child)' );
Above code fails to take the second :not() into account; it does not filter out the last instance of li. 1.7.2 is OK.
Change History (6)
comment:1 Changed 5 years ago by
comment:2 Changed 5 years ago by
| Component: | unfiled → selector |
|---|---|
| Owner: | set to erwin@… |
| Status: | new → pending |
What behavior are you expecting here? It looks to me like we are correctly returning (within the specified div.list context) all dds that are not the last child of their parents and all lis that are are not the last child of their parent.
comment:3 Changed 5 years ago by
| Status: | pending → new |
|---|
That is what I expect as well, but in IE6/7/8, it returns all dds without the last child, but all lis including the last child.
comment:4 Changed 5 years ago by
| Milestone: | None → 1.8.2 |
|---|---|
| Owner: | changed from erwin@… to gibson042 |
| Priority: | undecided → blocker |
| Status: | new → assigned |
I see.
comment:6 Changed 5 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.

Fails in IE8 as well.