Opened 12 years ago
Closed 12 years ago
#8993 closed bug (fixed)
jQuery.map( emptyNodeList ) enumerating properties.
Reported by: | Robert Katić | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.6 |
Component: | core | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Change History (5)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | unfiled → core |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
jQuery does not have documented support for native DOM NodeLists
comment:3 Changed 12 years ago by
There is no mention of NOT supporting native DOM NodeLists neither.
"Array-like objects, such as jQuery collections, are treated as arrays. In other words, if an object has a .length property and a value on the .length - 1 index, it is traversed as an array."
Ah yea, it's because of #9023, how silly of me.
So it's not because it is NodeList, but because it is EMPTY.
comment:4 Changed 12 years ago by
Milestone: | 1.next → 1.6 |
---|---|
Priority: | low → blocker |
Resolution: | invalid |
Status: | closed → reopened |
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Make sure that empty nodelists continue to map properly. Fixes #8993.
Changeset: 6c449fd5df3e0ec50e893d055da9aea486e7d71c
Note: See
TracTickets for help on using
tickets.
Patch: https://github.com/jquery/jquery/pull/356