Skip to main content

Bug Tracker

Side navigation

#7975 closed bug (fixed)

Opened January 14, 2011 08:25PM UTC

Closed January 14, 2011 10:33PM UTC

filter() behavior is different when source is single dom vs multiple dom nodes

Reported by: coli@rocketmail.com Owned by:
Priority: low Milestone: 1.4.4
Component: traversing Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

I have a bunch of <li data-id="0-0"/> <li data-id="0-1"/> etc

$("li").filter("[data-id=0-0]") returns the 1 matching node

$("li").filter("[data-id=0-0]").filter("[data-id=0-0]") returns empty! It should return that 1 node.

Attachments (0)
Change History (2)

Changed January 14, 2011 08:33PM UTC by anonymous comment:1

never mind, looks like it's fixed in 1.4.4

Changed January 14, 2011 10:33PM UTC by jitter comment:2

component: unfiledtraversing
milestone: 1.next1.4.4
priority: undecidedlow
resolution: → fixed
status: newclosed

Thanks for taking the time to contribute to the jQuery project by writing a bug report. I tried to reproduce the bug you described but wasn't able to do so. Even when using older jQuery versions. Could you please provide a test case on http://jsfiddle.net to verify when this issue occured/was fixed.

Replying to [comment:1 anonymous]:

never mind, looks like it's fixed in 1.4.4

Closing as requested by the reporter.