[whatwg] NodeList.forEach/map/filter still doesn't work

Boris Zbarsky bzbarsky at MIT.EDU
Sat Jan 4 10:25:41 PST 2014


On 1/4/14 1:17 PM, David Bruant wrote:
> I imagine the only thing they need is the engineering time both to
> implement it

It's a one-line change in Firefox.

> and keep an eye open on their bug tracker to see if a
> website breaks because of this change

This is the problem.  Just watching for bug report is not really enough 
here...  It's hard to say whether this change can safely be made without 
breaking stuff.  :(

Note also that we can't really do this for HTMLCollection, only 
NodeList.  Which is enough for querySelector, of course.

> How is your C++ and more importantly, what's the amount of time and
> patience you can put on evangelism? ;-)

The latter, and not just evangelism, but compat testing, is what really 
matters.  Adding this stuff to NodeList in Gecko doesn't even need any 
C++ changes; it looks like this:

--- a/dom/webidl/NodeList.webidl
+++ b/dom/webidl/NodeList.webidl
@@ -12,3 +12,2 @@

+[ArrayClass]
  interface NodeList {

-Boris



More information about the whatwg mailing list