Suggestions for Set

Jason Orendorff jason.orendorff at gmail.com
Wed Oct 3 12:47:47 PDT 2012


On Wed, Oct 3, 2012 at 1:57 PM, Brendan Eich <brendan at mozilla.com> 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.

-j


More information about the es-discuss mailing list