HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.14k stars 656 forks source link

Make js.html.HTMLCollection Iterable? #11588

Closed NQNStudios closed 7 months ago

NQNStudios commented 7 months ago

https://api.haxe.org/js/html/HTMLCollection.html

I commonly find myself trying to iterate on HTMLCollection objects. Is there a conscious design decision that would go against implementing Iterator for HTMLCollection?

filt3rek commented 7 months ago

You already can iterate on HTMLCollection : https://try.haxe.org/#e76e230b

NQNStudios commented 7 months ago

Oh whoops. I think @:arrayAccess might be what I was thinking of, then. What about that?

On Tue, Feb 20, 2024 at 10:20 AM M.Romecki @.***> wrote:

You already can iterate on HTMLCollection : https://try.haxe.org/#e76e230b

— Reply to this email directly, view it on GitHub https://github.com/HaxeFoundation/haxe/issues/11588#issuecomment-1954685871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATXBKK7GVKSGGNB76NYKGTYUTLMTAVCNFSM6AAAAABDRQULLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUGY4DKOBXGE . You are receiving this because you authored the thread.Message ID: @.***>

kLabz commented 7 months ago

Works too? https://try.haxe.org/#34e66a6D

NQNStudios commented 7 months ago

Sorry I'm so disorganized & didn't write down what was actually giving me trouble when it happened. I'll close this unless I remember.