Skip to main content

Bug Tracker

Side navigation

#11842 closed bug (duplicate)

Opened May 31, 2012 11:01AM UTC

Closed June 05, 2012 06:30PM UTC

Last modified June 05, 2012 06:30PM UTC

using find(with selectos and filter :not(with some selectors) )

Reported by: biavatipaolo@gmail.com Owned by: biavatipaolo@gmail.com
Priority: high Milestone: None
Component: selector Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

this instruction works (only one selector in :not filter)

ie: $('#menuStato > li > a').find('+ ul > li:not(.toggleMenuActions)')

when i use the :not filter with two or more class selector inside separated by ','

on a selector that start with '+'

in a find function

the result is an empty array

ie: $('#menuStato > li > a').find('+ ul > li:not(.toggleMenuActions, .toggleMenuFooter, .nascosto)')

The same instruction written like the follow works... (i just moved the ' > a ' from the fist brackets to the second one

ie: $('#menuStato > li').find(' > a + ul > li:not(.toggleMenuActions, .toggleMenuFooter, .nascosto)')

Attachments (0)
Change History (5)

Changed May 31, 2012 11:03AM UTC by sindresorhus comment:1

owner: → biavatipaolo@gmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed May 31, 2012 08:35PM UTC by biavatipaolo@gmail.com comment:2

status: pendingnew

I made a jsFiddle example test

http://jsfiddle.net/XHjqL/1/

Changed June 05, 2012 06:25PM UTC by gnarf comment:3

status: newopen

Positional selectors and find() have been known to play weirdness before... This has a test case now though, we'll see what the selectors guys have to say about it.

Changed June 05, 2012 06:30PM UTC by timmywil comment:4

component: unfiledselector
priority: undecidedhigh
resolution: → duplicate
status: openclosed

Changed June 05, 2012 06:30PM UTC by timmywil comment:5

Duplicate of #11814.