Side navigation
#12524 closed bug (duplicate)
Opened September 12, 2012 07:43PM UTC
Closed September 14, 2012 12:32AM UTC
Stackoverflow error when selector contains :Eq (ex $(":input[data="value:Equivalent"]") )
Reported by: | iulian@recognos.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Example jsFiddle: http://jsfiddle.net/h9VRc/2/
Results in error: Uncaught RangeError: Maximum call stack size exceeded
Apparently the problem is in the select function:
// POS handling
if (matchExpr["POS"].test(selector)) {
return handlePOS(match, context, results, seed);
}
where the regex is :
/:(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)/gi
which matches selectors that contain "unintended" pseudo selectors like the one in the summary.
Attachments (0)
Change History (1)
Changed September 14, 2012 12:32AM UTC by comment:1
resolution: | → duplicate |
---|---|
status: | new → closed |
Duplicate of #12303.