Re: Elements array and query/queryAll methods

Anne van Kesteren <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <CADnb78jYhjWoTDS7cbxs5YWLJdMiFQAWqzmpU3xpzwKcN-9B5g@mail.gmail.com>
Can we use [email protected] for the DOM? Also, please use
http://dom.spec.whatwg.org/ as that's the canonical version.

> From: Eric Devine
>
> What use cases is Elements intended to solve the NodeList and HTMLCollection
> aren't suited for?

It's meant to be a better API. E.g. have map and such.


> What other functions return an Elements object?

Just these for now.


> Will there be a "live" Elements array?

We should not introduce more live lists. They are bad.


> Is Elements intended to replace the use of NodeList and HTMLCollection?

Yes.


> Where can I find the UA implementation status for these features?

No implementation yet.


> Does anyone know of a polyfill for either?

https://gist.github.com/domenic/5864658 is an illustration of how this
could be implemented going forward.


-- 
http://annevankesteren.nl/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.