← Back to release summary

Iterable Array-like DOM interfaces

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 51)
Intent stage
None

Summary

Adds `Symbol.iterator` to any DOM interface containing an indexed property getter, and a "length" property, such as HTMLAllCollection, FileList or MediaList. This enables their use in ECMAScript 6 for-of loops.

Standards & signals

View on chromestatus.com