Comments on Sept Meeting Notes

Rick Waldron waldron.rick at gmail.com
Mon Sep 30 10:30:42 PDT 2013


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>


More information about the es-discuss mailing list