Bug Tracker

Modify

Ticket #8132 (closed bug: duplicate)

Opened 2 years ago

Last modified 22 months ago

:has with :nth-child throws syntax error

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

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/

Change History

comment:1 Changed 2 years ago by jitter

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to selector

comment:2 Changed 2 years ago by jitter

#8237 is a duplicate of this ticket.

comment:3 Changed 2 years ago by snover

#8303 is a duplicate of this ticket.

comment:4 Changed 23 months ago by john

#8720 is a duplicate of this ticket.

comment:5 Changed 23 months ago by john

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

comment:6 Changed 23 months ago by john

Duplicate of #7010.

comment:7 Changed 22 months ago by AlistairB

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.

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.