Closed
Bug 1264888
Opened 9 years ago
Closed 9 years ago
There's another desirable way to iterate over a NodeList which isn't brought up
Categories
(Developer Documentation Graveyard :: JavaScript, defect, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sjoshuaross, Unassigned)
References
()
Details
:: Developer Documentation Request
Request Type: New Documentation
Gecko Version: unspecified
Technical Contact:
:: Details
It should be mentioned that you can iterate over the NodeList object using Object.keys(nodelist).forEach(). Perhaps it would be useful to also mention that polyfills exist for Object.keys and forEach
Comment 1•9 years ago
|
||
Thanks for reporting this! I have added a code snippet that does this.
Account creation on MDN is back, so if you like, feel free to register on the wiki and make some tweaks to the docs yourself, too :)
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•9 years ago
|
||
Cool, thanks.
You need to log in
before you can comment on or make changes to this bug.
Description
•