W3C

Edit comment LC-1987 for Web Applications Working Group

Quick access to

Previous: LC-1988 Next: LC-1986

Comment LC-1987
:
Commenter: Daniel Glazman <daniel.glazman@disruptive-innovations.com>

or
Resolution status:

Hi,

1. congrats for this spec, I love it ; I can't count how many times in
page or chrome script I am filtering out nodes that are not element
nodes.

2. the ElementTraversal interface has a |childElementCount| attribute
but misses access to an individual childElement based on its index.
That would be really useful. Two solutions here :

a. you remove the childElementCount attribute in favor of a

readonly attribute NodeList childElements;

and that NodeList has all we need

b. you add

Node item(in unsigned long index);

but that is not really consistent with the existing way of
querying list of nodes.

My very strong preference goes to solution a.

Best,

</Daniel>
(space separated ids)
(Please make sure the resolution is adapted for public consumption)


Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: 1987.html,v 1.1 2017/08/11 06:45:35 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org