Bug Tracker

Opened 12 years ago

Closed 12 years ago

#7975 closed bug (fixed)

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

Reported by: [email protected] Owned by:
Priority: low Milestone: 1.4.4
Component: traversing Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


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.

Change History (2)

comment:1 Changed 12 years ago by anonymous

never mind, looks like it's fixed in 1.4.4

comment:2 in reply to:  1 Changed 12 years ago by jitter

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 anonymous:

never mind, looks like it's fixed in 1.4.4

Closing as requested by the reporter.

Note: See TracTickets for help on using tickets.