Timeline for Difference between HTMLCollection, NodeLists, and arrays of objects
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 8, 2023 at 14:18 | review | Suggested edits | |||
Mar 9, 2023 at 13:13 | |||||
Jan 21, 2021 at 13:40 | comment | added | SkyShab | Number 3 is completely wrong. getElementsByClassName and getElementsByTagName return HTMLCollections and NOT NodeLists. querySelector and querySelectorAll will return a NodeList. | |
Jun 20, 2020 at 9:12 | history | edited | CommunityBot |
Commonmark migration
|
|
Apr 2, 2013 at 12:34 | comment | added | Daniel Imms | That was showing how you can have numeric properties on objects. I'm trying to emphasis the facts that they're objects, not arrays. | |
Apr 2, 2013 at 12:31 | comment | added | Bergi |
The array-like log is mostly a result of the length property, not of the numeric property names. And what does your example of alerting a string have to do with console.log ?
|
|
Apr 2, 2013 at 12:22 | comment | added | Daniel Imms | @user1032531 that is the Chrome dev tools. By the way I updated the start of the answer. | |
Apr 2, 2013 at 12:22 | history | edited | Daniel Imms | CC BY-SA 3.0 |
added 1511 characters in body
|
Apr 2, 2013 at 12:19 | comment | added | user1032531 | How did you display the DOM in your 3rd response? Thanks! | |
Apr 2, 2013 at 12:07 | history | answered | Daniel Imms | CC BY-SA 3.0 |