Bug Tracker

Modify

Ticket #12287 (closed bug: duplicate)

Opened 10 months ago

Last modified 10 months ago

Nested custom pseudo class selectors throw exceptions

Reported by: seddon.ryan@… Owned by:
Priority: low Milestone: None
Component: selector Version: 1.8.0
Keywords: Cc:
Blocking: Blocked by:

Description

See testcase  http://jsfiddle.net/ryanseddon/PPuRg/1/

I came across this error while upgrading to 1.8, our site uses Microsofts MVC validation lib which builds a selector like this $("#ResumeValSummary:not(:has(ul:first))") this gets mangled inside the handlePOS method which passes the selector off as "#ResumeValSummary:not(:has(ul"

This happens for any of the custom pseudo-classes e.g. odd, even etc above test case covers more scenarios where this falls over.

Change History

comment:1 Changed 10 months ago by sindresorhus

  • Cc timmywil added
  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to selector

Confirmed. Worked in 1.7.2

comment:2 Changed 10 months ago by timmywil

  • Cc timmywil removed
  • Status changed from open to closed
  • Resolution set to duplicate

Duplicate of #12285.
This will be addressed in #12285.

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.