Loop à travers les éléments par nom js

// ES6 solution
const children = [...parent.getElementsByTagName('tag')];
children.forEach((child) => { /* Do something; */ });
Puzzled Puffin