Side navigation
#10607 closed bug (invalid)
Opened October 28, 2011 03:01PM UTC
Closed October 28, 2011 04:45PM UTC
$.parentsUntil matches partial class names
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Consider structure:
<div class="foo">
<div class="fooBar">
<div id="awol"></div>
</div>
</div>
$('#awol').parentsUntil('.foo'); won't match the outernmost .foo but the inner .fooBar element.
Example:
Attachments (0)
Change History (1)
Changed October 28, 2011 04:45PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
The description for http://api.jquery.com/parentsUntil/ says:
... but not including ...
So yes it did find the outermost parent, but per its documented behavior did not return it in the matched set.
The forum community can provide more info about selectors: http://forum.jquery.com/