<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - JavaScript for-of on HTML Collection in Safari"
href="https://bugs.webkit.org/show_bug.cgi?id=167091">bug 167091</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">URL</td>
<td>
</td>
<td>https://heycam.github.io/webidl/#es-iterator
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - JavaScript for-of on HTML Collection in Safari"
href="https://bugs.webkit.org/show_bug.cgi?id=167091#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - JavaScript for-of on HTML Collection in Safari"
href="https://bugs.webkit.org/show_bug.cgi?id=167091">bug 167091</a>
from <span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span></b>
<pre>Per <a href="https://heycam.github.io/webidl/#es-iterator">https://heycam.github.io/webidl/#es-iterator</a>:
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>