On Wed, Oct 3, 2012 at 3:47 PM, Jason Orendorff <[email protected]>wrote:
> On Wed, Oct 3, 2012 at 1:57 PM, Brendan Eich <[email protected]> wrote: > > On that point, does NodeList have an iterator in Firefox now? That's an > > obvious Array.from argument type. > > Yep! > > > document.body.querySelectorAll("p").iterator() > [object Iterator] > > > [...document.body.querySelectorAll("p")].length > 1 > > Huh. Only one? That's weird, I thought gmail would have lots of <p> > elements. > > > [...document.body.querySelectorAll("div")].length > 1723 > > There we go. > Looks like DOMTokenList as well... var d = document.createElement("div"); d.className = "foo bar baz"; [...d.classList] ["foo", "bar", "baz"] :) This makes a really good case for aligning Array.from, for-of and spread Rick > -j > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

