Bug Tracker

Opened 7 years ago

Closed 7 years ago

#8993 closed bug (fixed)

jQuery.map( emptyNodeList ) enumerating properties.

Reported by: rkatic Owned by:
Priority: blocker Milestone: 1.6
Component: core Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

Change History (5)

comment:2 Changed 7 years ago by Rick Waldron

Component: unfiledcore
Priority: undecidedlow
Resolution: invalid
Status: newclosed

jQuery does not have documented support for native DOM NodeLists

comment:3 Changed 7 years ago by rkatic

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.

Last edited 7 years ago by rkatic (previous) (diff)

comment:4 Changed 7 years ago by john

Milestone: 1.next1.6
Priority: lowblocker
Resolution: invalid
Status: closedreopened

comment:5 Changed 7 years ago by John Resig

Resolution: fixed
Status: reopenedclosed

Make sure that empty nodelists continue to map properly. Fixes #8993.

Changeset: 6c449fd5df3e0ec50e893d055da9aea486e7d71c

Note: See TracTickets for help on using tickets.