Skip to main content

Bug Tracker

Side navigation

#11902 closed bug (fixed)

Opened June 13, 2012 11:26AM UTC

Closed July 12, 2012 01:24AM UTC

Last modified July 12, 2012 01:54AM UTC

:not + :contains selectors

Reported by: gdoron12345@gmail.com Owned by:
Priority: low Milestone: 1.8
Component: selector Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

I'm trying to use this code:

$('div.b:not(:has(p:contains(not me)))').css('color', 'red');

And it doesn't work, while if I just remove the :not it does work:

$('div.b:has(p:contains(not me))').css('color', 'blue');

More details and demo here:

http://stackoverflow.com/q/11013609/601179

I saw there's a ticket about two pseudo selectors, but those does work for me in 1.7.2, so it must be something else.

Attachments (0)
Change History (2)

Changed July 12, 2012 01:24AM UTC by dmethvin comment:1

resolution: → fixed
status: newclosed

Your test case from the SO thread: http://jsfiddle.net/XYDk2/

This seems to be correct with 1.8b2.

Changed July 12, 2012 01:54AM UTC by dmethvin comment:2

component: unfiledselector
milestone: None1.8
priority: undecidedlow