Skip to main content

Bug Tracker

Side navigation

#10535 closed bug (duplicate)

Opened October 19, 2011 02:08PM UTC

Closed October 19, 2011 03:00PM UTC

Last modified October 19, 2011 03:00PM UTC

Sizzle filter function

Reported by: Owned by:
Priority: low Milestone: None
Component: traversing Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:

I found something wrong.

for ex:







The query:

$('ul:first li:last').filter('ul:first li:first')

return as $('ul:first li:last')

This problem cause: $('ul:first li:last').is('ul:first li:first') return true and many other functions using 'is' function will not be correct.

Please investigate this problem

Attachments (0)
Change History (2)

Changed October 19, 2011 03:00PM UTC by timmywil comment:1

component: unfiledtraversing
priority: undecidedlow
resolution: → duplicate
status: newclosed

We encountered this logical problem recently in the event rewrite in 1.7. It has been addressed and it was decided that .is will be treated slightly differently than .filter. .is will take into account positional selectors such as first and check against the original relationships.

Changed October 19, 2011 03:00PM UTC by timmywil comment:2

Duplicate of #7322.