Skip to main content

Bug Tracker

Side navigation

#12287 closed bug (duplicate)

Opened August 14, 2012 07:06AM UTC

Closed August 23, 2012 08:49PM UTC

Nested custom pseudo class selectors throw exceptions

Reported by: seddon.ryan@gmail.com Owned by:
Priority: low Milestone: None
Component: selector Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed August 14, 2012 12:06PM UTC by sindresorhus comment:1

cc: → timmywil
component: unfiledselector
priority: undecidedlow
status: newopen

Confirmed. Worked in 1.7.2

Changed August 23, 2012 08:49PM UTC by timmywil comment:2

cc: timmywil
resolution: → duplicate
status: openclosed

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