Side navigation
#8317 closed bug (invalid)
Opened February 18, 2011 03:25PM UTC
Closed February 18, 2011 04:00PM UTC
parentsUntil not working correctly
Reported by: | Mathijs Giesbers | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | traversing | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The problem occurs after upgrading to version 1.5 (from version 1.4.2)
the problem is with the selectors:
$item.parentsUntil($root) is not working (previously it did work)
$item.parentsUntil("#"+$root.attr("id")) is working
so when using a string based selector there is no problem, when using objects as selectors the function is not working. The error message is "c.replace not found"
Attachments (0)
Change History (1)
Changed February 18, 2011 04:00PM UTC by comment:1
component: | unfiled → traversing |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Thanks for taking the time to contribute to the jQuery project by writing a bug report.
This isn't a bug. The .parentsUntil documentation reads:
>selector A string containing a selector expression to indicate where to stop matching ancestor elements.
So the selector needs to be a string. Passing a jQuery object to
.parentsUntil()
is an invalid usage of the method.