Yes the numbers are different
but they are both correct,
browsers other than IE add
an empty text node to
empty divs
Code:
function getParentLength() {
var parente = document.getElementById('itemlist');
var nodes=parente.childNodes;
alert(nodes.length);
a="";
for(var i=0; i<nodes.length; i++)
a += nodes[i].nodeType +"\n"
alert(a)
}