childElementCount: returns the number of child elements (excludes text nodes and comments);
firstElementChild: points to the first child that is an element.Element-only version of firstChild
lastElementChild: points to the last child that is an element.Element-only version of lastChild
previousElementSibling: points to the previous sibling that is an element . Element-only version of previousSibling
nextElementSibling: points to the next sibling that is an element . Element-only version of nextSibling
var i,len child=element.firstElementChild;
while(child!=element.lastElementChild){
//.....
child=child.nextElementSibling;
}