Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to implement and ship: Iterable declarations on NodeList and DOMTokenList

60 views
Skip to first unread message

Boris Zbarsky

unread,
Jul 29, 2016, 10:41:23 PM7/29/16
to
Summary: The idea is to have keys/entries/values/forEach methods on
these two interfaces, so you can do things like:

document.querySelectorAll("whatever").forEach(someFunc)

and

document.body.classList.forEach(someFunc)

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1290636

Standard: https://dom.spec.whatwg.org/#interface-nodelist and
https://dom.spec.whatwg.org/#interface-domtokenlist

Platform coverage: all.

Estimated release: Firefox 50.

Devtools bug: none needed.

Other browsers: Chrome is shipping this in stable; no signals from
Safari or Edge.

-Boris

smaug

unread,
Jul 30, 2016, 4:41:18 AM7/30/16
to
+1

Eric Shepherd

unread,
Jul 31, 2016, 10:03:44 AM7/31/16
to Boris Zbarsky, dev-pl...@lists.mozilla.org
Noted dev-doc-needed on the bug.

Gentle reminder for everyone to try to remember to put this on any bug
which affects how developers can or should use things. :)

------------------------------------------------------------------------
*From:* Boris Zbarsky
*Sent:* Friday, Jul 29, 2016 10:41:16 PM EDT
*To:* dev-pl...@lists.mozilla.org
*Subject:* Intent to implement and ship: Iterable declarations on
NodeList and DOMTokenList

> Summary: The idea is to have keys/entries/values/forEach methods on
> these two interfaces, so you can do things like:
>
> document.querySelectorAll("whatever").forEach(someFunc)
>
> and
>
> document.body.classList.forEach(someFunc)
>
> Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1290636

--

Eric Shepherd
Senior Technical Writer
Mozilla Developer Network <https://developer.mozilla.org/>
Blog: https://www.bitstampede.com/
Twitter: http://twitter.com/sheppy
Doodle: http://doodle.com/the.sheppy

masatak...@gmail.com

unread,
Aug 2, 2016, 11:32:05 AM8/2/16
to

Boris Zbarsky

unread,
Aug 2, 2016, 12:17:37 PM8/2/16
to
On 8/2/16 8:32 AM, masatak...@gmail.com wrote:
> It looks like WebKit landed support recently.
> https://trac.webkit.org/changeset/203222
> https://trac.webkit.org/changeset/203728

Ah, thanks. I just checked a WebKit nightly, and yes, they support it
in a way compatible with our implementation (unlike Chrome, which is
slightly buggy; see
<https://bugs.chromium.org/p/chromium/issues/detail?id=632935>).

-Boris

0 new messages