W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [DOM4] NodeList should be deprecated

From: Cameron McCormack <cam@mcc.id.au>
Date: Sat, 17 Mar 2012 13:31:16 +1100
Message-ID: <4F63F774.7020906@mcc.id.au>
To: Anne van Kesteren <annevk@opera.com>
CC: Ojan Vafai <ojan@chromium.org>, Rick Waldron <waldron.rick@gmail.com>, Adam Klein <adamk@chromium.org>, WebApps WG <public-webapps@w3.org>, Erik Arvidsson <arv@chromium.org>, Ryosuke Niwa <rniwa@chromium.org>
Cameron McCormack: > It is probably not feasible to add to 
HTMLCollection, because it has a
> named property getter which is not [OverrideBuiltins].  That means that
> all the new properties on the prototype like "concat", "push", etc.
> would begin to shadow any named elements on the collection.

On the other hand it would be great to be able to do things like:

           .map(function(x) { return x.clientWidth });


I am a bit reluctant to special case the visibility of named properties 
on HTMLCollection to be something other than the current 
[OverrideBuiltins] or non-[OverrideBuiltins] behaviour.
Received on Saturday, 17 March 2012 02:31:50 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:39 UTC