forEach method of Node.childNodes?
DOM4 now defines NodeList as an iterable: iterable<Node>; According to the IDL draft, that means An interface can be declared to be iterable by using an iterable declaration (matching Iterable) in the body of the interface. iterable<value-type>; iterable<key-type, value-type>; Objects implementing an interface that is declared to be iterable support being iterated over to obtain … Read more