- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Sun, 28 Jul 2013 11:10:16 -0700
- To: Ojan Vafai <ojan@chromium.org>
- Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Jonas Sicking <jonas@sicking.cc>
On 7/27/13 10:58 AM, Ojan Vafai wrote:
> var iterator = document.querySelectorAll('div').iterator(); <--- does
> some magic to not precompute the whole list
Well, so... not precompute but make it some sort of live, or not
precompute but represent a frozen set of nodes?
What should happen with this situation:
var list = document.querySelectorAll('div');
var iterator = list.iterator();
Should the list of nodes be precomputed in this case?
Basically, the magic sounds like it's ... very magical. Magical enough
that authors would have a tough time with this setup, even ignoring
implementation concerns.
-Boris
Received on Sunday, 28 July 2013 18:10:47 UTC