Side navigation
#14693 closed bug (notabug)
Opened January 14, 2014 06:07PM UTC
Closed January 14, 2014 06:08PM UTC
Last modified January 14, 2014 06:17PM UTC
.filter() does not preserve selector order
Reported by: | shadowhand | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When using .filter() on a set of elements with the selector .active, :first
the first element in the set will be the :first
, not .active
as expected.
Test case: http://jsfiddle.net/meuQ3/1/
Attachments (0)
Change History (3)
Changed January 14, 2014 06:08PM UTC by comment:1
Changed January 14, 2014 06:08PM UTC by comment:2
resolution: | → notabug |
---|---|
status: | new → closed |
Results are always sorted in DOM order.
Changed January 14, 2014 06:17PM UTC by comment:3
Wow... I've been using jQuery for years and never noticed it was strictly DOM order. The more you know...
FWIW, bug also appears in latest 2.x.