Iterating over the NodeList the old fashioned way, to avoid weird bugs