- From: Domenic Denicola <domenic@domenicdenicola.com>
- Date: Wed, 11 Sep 2013 13:20:21 +0000
- To: Tab Atkins Jr. <jackalmage@gmail.com>, Anne van Kesteren <annevk@annevk.nl>
- CC: WebApps WG <public-webapps@w3.org>
From: Tab Atkins Jr. [mailto:jackalmage@gmail.com]
> That helps when you've *already* run findAll() once, and need to run it again on the results, but it doesn't help at all when you're starting with a set of elements, unless we perhaps make a constructable NodeList and force people to pass their array through that first.
I believe the idea would be
```js
Elements.from(parents).select("selector")
// instead of
document.select("selector", parents)
```
For the single-element case, it would be
```js
parent.select("selector")
// instead of
document.select("selector", parent)
```
Received on Wednesday, 11 September 2013 13:21:06 UTC