Bug Tracker

Modify

Ticket #11902 (closed bug: fixed)

Opened 23 months ago

Last modified 22 months ago

:not + :contains selectors

Reported by: gdoron12345@… Owned by:
Priority: low Milestone: 1.8
Component: selector Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 22 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

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

This seems to be correct with 1.8b2.

comment:2 Changed 22 months ago by dmethvin

  • Priority changed from undecided to low
  • Component changed from unfiled to selector
  • Milestone changed from None to 1.8

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.