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()?

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:03 UTC