Skip to main content

Bug Tracker

Side navigation

#12238 closed bug (duplicate)

Opened August 10, 2012 08:59AM UTC

Closed August 10, 2012 03:16PM UTC

Having multiple :not(:has()) selectors throws a syntax error.

Reported by: r.osenkonstantinov@gmail.com Owned by:
Priority: low Milestone: None
Component: selector Version: 1.8.0
Keywords: Cc: timmywil
Blocked by: Blocking:
Description

Having similar to the following selector fails with syntax error:

$("div:not(:has(span.bar)):not(:has(a.baz))")

This seems to work with 1.7 version.

Here you can find simple repro:

http://jsbin.com/orohus/1

Attachments (0)
Change History (3)

Changed August 10, 2012 10:34AM UTC by addyosmani comment:1

cc: → timmywil
component: unfiledselector
priority: undecidedlow

Confirmed, however I can't quite help but feel like the complexity of the selector you're using can be significantly simplified. I imagine this change is related to the Sizzle rewrite.

Changed August 10, 2012 12:15PM UTC by mikesherov comment:2

This selector haunts my dreams. Godspeed, timmywil... We're all counting on you.

Changed August 10, 2012 03:16PM UTC by timmywil comment:3

resolution: → duplicate
status: newclosed

Duplicate of #12237.