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

[DOM4] NodeList should be deprecated

From: Ojan Vafai <ojan@chromium.org>
Date: Thu, 8 Mar 2012 14:24:45 -0800
Message-ID: <CANMdWTvnf7qw4HPsGb6MX5fK3cnnA+MaN8tzLvOnKGMU4F_JgQ@mail.gmail.com>
To: WebApps WG <public-webapps@w3.org>, Erik Arvidsson <arv@chromium.org>, Ryosuke Niwa <rniwa@chromium.org>
Dynamic NodeLists have a significant memory and performance cost. Static
NodeLists are basically just under-powered arrays. We should just return
Node arrays from any new APIs that return a list of Nodes. I'd like to see
NodeList get similar treatment to hasFeature, i.e. a note that it not be
used for new APIs and possibly even the explicitly list the APIs allowed to
return them.

I don't see the Dynamic/Static distinction in DOM4 or the HTML spec. Is
this specified anywhere?

For reference, this came up in WebKit with some new Regions APIs
https://bugs.webkit.org/show_bug.cgi?id=80638.
Received on Thursday, 8 March 2012 22:25:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT