Rick Waldron (2013-09-30T17:30:42.000Z)
On Mon, Sep 30, 2013 at 12:54 PM, Kevin Smith <zenparsing at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130930/f68091e1/attachment.html>
domenic at domenicdenicola.com (2013-10-13T02:41:18.284Z)
On Mon, Sep 30, 2013 at 12:54 PM, Kevin Smith <zenparsing at gmail.com> 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):

```js
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.