This document:Public document·View comments·Disposition of Comments·
Nearby:Web Applications Working Group Other specs in this tool
Quick access to LC-1985 LC-1986 LC-1987 LC-1988 LC-1989 LC-1990
Previous: LC-1985 Next: LC-1988
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.