W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: QSA, the problem with ":scope", and naming

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 20 Oct 2011 13:34:25 -0700
Message-ID: <CAAWBYDCfhXvPwq0FWSRdnfdO-OePSFa410Q2H5eT+6-rKBPHTQ@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Alex Russell <slightlyoff@google.com>, Boris Zbarsky <bzbarsky@mit.edu>, public-webapps@w3.org
On Thu, Oct 20, 2011 at 12:09 PM, Jonas Sicking <jonas@sicking.cc> wrote:
> Let's do the general discussion about how live and non-live NodeLists
> should behave in a separate thread.

Yes, let's.  ^_^

> The immediate question here is how should the returned object from
> .findAll behave? Should it be mutable? Should you be able to insert
> non-Nodes into it? Should it have all of the functions of
> Array.prototype or just some subset? Should it have any additional
> functions?
> Since .findAll is a new function we have absolutely no constraints as
> far as how NodeLists behave, we can simply return something that isn't
> a NodeList.

It should absolutely have all the Array functions.  I know that I want
to be able to slice, append, forEach, map, and reduce the list
returned by .find.

Received on Thursday, 20 October 2011 20:35:12 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:36 UTC