#12396 closed bug (invalid)
.find() : Getting the descendants filtered by a #id selector is only returning the first children.
Reported by: | blindOSX | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | traversing | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I think the .find() function is not working properly.
Getting the descendants filtered by a #id selector is only returning the first children.
Change History (2)
comment:1 Changed 10 years ago by
Component: | unfiled → traversing |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 10 years ago by
It's worth noting that although this bug is invalid, the behaviour of jQuery prior to version 1.8 was to return multiple results from the find() function even when using an #Id selector.
See this example with jQuery 1.7.2
This is a potentially breaking change if code was relying on the previous incorrect behaviour of jQuery.
Note: See
TracTickets for help on using
tickets.
Your markup is invalid;
#id
selectors match at most one element because everyid
attribute in a document should have a unique value.