Skip to main content

Bug Tracker

Side navigation

#2266 closed bug (invalid)

Opened January 31, 2008 08:03PM UTC

Closed May 13, 2008 03:44AM UTC

Last modified May 13, 2008 05:26PM UTC

multiFilter doesn't properly filter with selectors that contain descendants

Reported by: scottgonzalez Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.2
Keywords: is filter multiFilter Cc:
Blocked by: Blocking:

There seems to be a problem with multiFilter when filtering with descendant selectors. There may be other selectors that cause this problem as well, but I have only noticed it with descendant (space) and child (>) selectors.

The following code will return a jQuery object with the body element (expected: empty jQuery object):

// or
$('body').filter('html head');

Similarly, the following will return true (expected: false):

Attachments (0)
Change History (2)

Changed May 13, 2008 03:44AM UTC by flesler comment:1

resolution: → invalid
status: newclosed

$.filter and $ accept only simple selectors, that means, no descendance.

Check the docs to learn more about simple selectors.

Changed May 13, 2008 05:26PM UTC by flesler comment:2