Skip to main content

Bug Tracker

Side navigation

#4322 closed bug (duplicate)

Opened March 10, 2009 02:23PM UTC

Closed March 31, 2011 03:24AM UTC

Last modified March 31, 2011 03:24AM UTC

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:
Blocked by: Blocking:
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

Attachments (0)
Change History (4)

Changed June 12, 2010 01:57PM UTC by dmethvin comment:1

component: unfiledselector

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

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

Changed November 14, 2010 02:34AM UTC by dmethvin comment:2

priority: majorlow
status: newopen

Changed March 31, 2011 03:24AM UTC by danheberden comment:3

resolution: → duplicate
status: openclosed

Changed March 31, 2011 03:24AM UTC by danheberden comment:4

Duplicate of #8720.