Bug Tracker

Modify

Ticket #4322 (closed bug: duplicate)

Opened 4 years ago

Last modified 2 years ago

nested :not inside :has doesn't work in FF3 and Safari 4

Reported by: besh Owned by:
Priority: low Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

Works (tested) in IE6/7, Opera 9.6, Google Chrome.
Doesn't work in FF3 and Safari 4 (no error, just the selector doesn't match any elements).

Markup:

<div>
	<p class="test">Test</p>
</div>
<div>
	<p class="test done">Test done</p>
</div>

Selector, looking for <div>s with p.test but not p.test.done:

$("div:has(.test:not(.done))");

Basic testcase:
 http://jsbin.com/ofeme

Change History

comment:1 Changed 3 years ago by dmethvin

  • Component changed from unfiled to selector

Oddly, switching the order of the two filters does work properly:

div:has(:not(.fixed).help)

comment:2 Changed 3 years ago by dmethvin

  • Priority changed from major to low
  • Status changed from new to open

comment:3 Changed 2 years ago by danheberden

  • Status changed from open to closed
  • Resolution set to duplicate

comment:4 Changed 2 years ago by danheberden

Duplicate of #8720.

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.