Bug Tracker

Ticket #12541 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

1.8.0 and 1.8.1: Double :not() selector fails in IE6/7

Reported by: erwin@… Owned by: gibson042
Priority: blocker Milestone: 1.8.2
Component: selector Version: 1.8.0
Keywords: Cc:
Blocking: Blocked by:

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.

 http://jsfiddle.net/Ztcfq/1/

Change History

comment:1 Changed 2 years ago by erwin@…

Fails in IE8 as well.

comment:2 Changed 2 years ago by gibson042

  • Owner set to erwin@…
  • Status changed from new to pending
  • Component changed from unfiled to selector

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 2 years ago by erwin@…

  • Status changed from pending to 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 2 years ago by gibson042

  • Owner changed from erwin@… to gibson042
  • Priority changed from undecided to blocker
  • Status changed from new to assigned
  • Milestone changed from None to 1.8.2

I see.

comment:6 Changed 2 years ago by Timmy Willison

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.