Jestem wielkim fanem przy użyciu metody foreach na nodeLists tak: var nodes = document.querySelectorAll(".foo");
[].forEach.call(nodes, function (item) {
//do stuff with item
});
Zastanawiał
Czy istnieje sposób na połączenie 2 węzłów zwróconych przez 2 wywołania document.getElementsByTagName? Powiedz, mam następujący kod var inputs = documentElement.getElementsByTagName('input');
var sel