W3C home > Mailing lists > Public > public-webapi@w3.org > March 2008

[Elemement Traversal LC] why is the interface implemented as attributes in ECMASCRIPT?

From: Slim Amamou <slim.amamou@gmail.com>
Date: Fri, 7 Mar 2008 09:48:30 +0100
Message-ID: <e5c98a400803070048h314632b6q281e5bd2619d2215@mail.gmail.com>
To: public-webapi@w3.org
the ElementTraversal interface is bound to readonly attributes in
ecmascript, whereas it is bound to methods in java.

it would be more convenient if it was bound to methods in ecmascript either.
i can think of two arguments for this :
- the bindings will be more consistent (so that you don't have
"getChildElementCount" and "childElementCount" representing the same
- i can make a quick implementation in javascript

Slim Amamou
Received on Friday, 7 March 2008 08:48:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:25 UTC