Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2266 closed bug (invalid)

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:

Description

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

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

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

$('body').is('html>head');

Change History (2)

comment:1 Changed 12 years ago by flesler

Resolution: invalid
Status: newclosed

$.filter and $.fn.is accept only simple selectors, that means, no descendance. Check the docs to learn more about simple selectors.

comment:2 Changed 12 years ago by flesler

Milestone: 1.2.31.2.4
Note: See TracTickets for help on using tickets.