#8132 closed bug (duplicate)
: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/
Change History (7)
comment:1 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → high |
Status: | new → open |
comment:2 Changed 12 years ago by
comment:5 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | open → closed |
comment:7 Changed 12 years ago by
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.
Note: See
TracTickets for help on using
tickets.
#8237 is a duplicate of this ticket.