Skip to main content

Bug Tracker

Side navigation

#4108 closed bug (worksforme)

Opened February 10, 2009 04:23PM UTC

Closed November 19, 2010 02:07AM UTC

Last modified October 18, 2011 08:11PM UTC

:not(:last) selector fails

Reported by: garito Owned by: john
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:
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!

Attachments (0)
Change History (3)

Changed October 14, 2009 02:58AM UTC by dmethvin comment:1

component: unfilledselector
owner: → john

Changed November 19, 2010 02:07AM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

Changed October 18, 2011 08:11PM UTC by anonymous comment:3

I am finding this error too.