Skip to main content

Bug Tracker

Side navigation

#8132 closed bug (duplicate)

Opened February 01, 2011 07:36PM UTC

Closed July 12, 2011 04:58PM UTC

Last modified August 07, 2011 11:18PM UTC

:has with :nth-child throws syntax error

Reported by: jrduncans Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

A selector combining :has with :nth-child throws a syntax error. Trying it out on jsFiddle indicates it worked in 1.2.6, but not since. http://jsfiddle.net/Yavmn/1/

Attachments (0)
Change History (7)

Changed February 01, 2011 08:21PM UTC by jitter comment:1

component: unfiledselector
priority: undecidedhigh
status: newopen

Changed February 10, 2011 02:37PM UTC by jitter comment:2

#8237 is a duplicate of this ticket.

Changed February 19, 2011 06:32PM UTC by snover comment:3

#8303 is a duplicate of this ticket.

Changed July 12, 2011 04:54PM UTC by john comment:4

#8720 is a duplicate of this ticket.

Changed July 12, 2011 04:58PM UTC by john comment:5

resolution: → duplicate
status: openclosed

Changed July 12, 2011 04:58PM UTC by john comment:6

Duplicate of #7010.

Changed August 07, 2011 11:18PM UTC by AlistairB comment:7

As per 8720, which was closed as a duplicate, this bug is not just involving :nth-child. See last 2 failing tests:

ul:has(li:not(:contains(nup)): 0 (expected: 1)

ul:has(.whatever:contains(bar)): 0 (expected: 1)

http://jsfiddle.net/AlistairB/F7gzn/5/

Using :has with :contains is also not working.

Looking at the other duplicates there appear to be other failing cases as well.