Edit comment LC-1989 for Web Applications Working Group

Quick access to

Previous: LC-1985 Next: LC-1988

Comment LC-1989
Commenter: João Eiras <joao.eiras@gmail.com>

Resolution status:


The Element Traversal WD define childElementCount on the Element interface.
Personally I see little use for such property by itself.
It would make much more sense to have childElements (similar to childNodes
on Node), and therefore we could use childElements.length to get the same
value as childElementCount. childElements would also be a live NodeList.

Most use cases for Element only transversal require looping NodeLists, and
if the author still has to filter nodes from these NodeLists by their
nodeType, then that beats the entire purpouse of this specification.

Thank you.
(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: 1989.html,v 1.1 2017/08/11 06:45:35 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org