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

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

Received on Saturday, 4 January 2014 18:26:04 UTC