Javascript: boucle à travers chaque troisième noeud enfant

Si j'ai un nœud parent, comment puis-je faire une boucle par tous les troisième nœud enfant?

J'ai maintenant ce code:

var parents = document.getElementById('ID_of_parent');
var first_child = parents.firstChild.data.id;
alert(parents);
alert(first_child);

Pour les parents, je suis maintenant "[objet HTMLDivElement] " et pour first_child je les aiundefined'.

source d'informationauteur Florian Müller