On Mon, Sep 30, 2013 at 12:54 PM, Kevin Smith <[email protected]> wrote:
>
>
>> I think all we want here is make HTMLCollection interoperate better
>> with other lists. For new features we moved away from HTMLCollection
>> for the reason you mention.
>>
>
> What do you think an HTMLCollection @@iterate method should do? Iterate
> like an array, or like a map?
>
In Firefox (regular and Nightly), HTMLCollection objects are iterable (with
a the temporary placeholder "iterator" method):
var collection = document.body.children;
for (var child of collection) {
console.log(child);
}
This matches my expectation, which is "like an array" in that
HTMLCollection instances are iterables.
Rick
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss