Bug Tracker

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:2 Changed 12 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 12 years ago by Robert Katić

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."

By such definition, in my opinion, NodeLists with length > 0 are also array-like objects.

Are you saying that DOM objects are not objects? If so, can you point me to that part?

Version 1, edited 12 years ago by Robert Katić (previous) (next) (diff)

comment:4 Changed 12 years ago by john

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

comment:5 Changed 12 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.