[Webkit-unassigned] [Bug 167091] JavaScript for-of on HTML Collection in Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 17 19:20:49 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=167091

Chris Dumez <cdumez at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://heycam.github.io/we
                   |                            |bidl/#es-iterator

--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
Per https://heycam.github.io/webidl/#es-iterator:
There should be an @@iterator if:
"an indexed property getter and an integer-typed attribute named “length”"

This applies to HTMLCollection for e.g. but I believe our bindings generator currently only adds an @@iterator if there is an maplike/setlike/iterable declaration in the IDL. However, I believe HTMLCollection is intentionally not marked as iterable<> in the IDL because this would add extra methods (forEach, keys, values, entries) that we do not want to expose because HTMLCollection also has a named property getter.

I can implement this soon unless someone gets to it first.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170118/3b6919dd/attachment.html>


More information about the webkit-unassigned mailing list