W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

Re: Move length property to the set of supported property indicies?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 20 May 2011 18:33:34 -0400
Message-ID: <4DD6EC3E.8000501@mit.edu>
To: public-script-coord@w3.org
On 5/20/11 6:17 PM, David Flanagan wrote:
> My experience is implementing NodeList in pure JavaScript (using
> Proxy.create()). The Proxy object knows the length of the list and could
> return it. But if it has to allow the NodeList.prototype.length getter
> function to return the value the implementation becomes more complex and
> requires a WeakMap in addition to the Proxy object.

One other note... Why is this an issue for length but not, say, item()?

-Boris
Received on Friday, 20 May 2011 22:34:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC