Bug Tracker

Modify

Ticket #4108 (closed bug: worksforme)

Opened 4 years ago

Last modified 20 months ago

:not(:last) selector fails

Reported by: garito Owned by: john
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: Cc:
Blocking: Blocked by:

Description

If you try something like:

$(this).parents(('dl:not(:last))

returns all the dl parents of this instead of all the dl parents except the last one as expected

Ricardo Tomasi said here:  http://groups.google.com/group/jquery-en/browse_thread/thread/acc39ea6a0742cbe that this is an expected behavior but I don't think so because it breaks the logical behaviour (you could read my opinion in the group threat)

You could see a test case at:  http://jquery.nodnod.net/cases/85 as pointed in the threat

If Ricardo Tomasi's point of view is correct in your opinion I suggest a poll request. I bet you that my opinion wins

Thanks!

Change History

comment:2 Changed 4 years ago by dmethvin

  • Owner set to john
  • Component changed from unfilled to selector

comment:3 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

comment:4 Changed 20 months ago by anonymous

I am finding this error too.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.