Iterator protocol for DOM objects with indexed getter

Hi,

Sorry for waking up that late on this topic, but I think a 
misunderstanding happened.

It all started at [1] with Jason Orendorff asking, in essence, 
meaningful for..of for NodeList, etc. based on the ES6 iterators 
protocol [2] (June 19th 2012).
Related bug [3] filed on June 29th 2012.
In the meantime (July 24th 2014), it's been decided that the iterator 
protocol would be based on a unique symbol [4].
The WebIDL spec got changed around Dec 14th oblivious of this change 
(though in the comment right after, heycam feels something is unclear 
about the spec).

 From what I know (and I re-read all meeting notes i could find in Rick 
Waldron's repo [5]), the consensus remains that there is an @@iterator 
unique symbol and that's what the iterator protocol is based off.

I discovered that Firefox already implemented what's in the current 
WebIDL draft [6], so it might be nice to find out whether the current 
WebIDL draft based on the "iterator" string property is what we really want.

Thanks,

David

[1] 
http://lists.w3.org/Archives/Public/public-script-coord/2012AprJun/0239.html
[2] http://wiki.ecmascript.org/doku.php?id=harmony:iterators
[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=17648
[4] end of 
https://mail.mozilla.org/pipermail/es-discuss/2012-July/024207.html
[5] https://github.com/rwaldron/tc39-notes/tree/master/es6
[6] https://bugzilla.mozilla.org/show_bug.cgi?id=906333#c1

Received on Saturday, 17 August 2013 21:23:40 UTC