Element Traversal comment

Hi.

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.

Received on Tuesday, 29 July 2008 23:11:09 UTC