RT Manuel Matuzović
TIL that document.querySelectorAll() returns a static NodeList and Element.getElementByTagName() returns a live HTMLCollection.
Demo:
h/t @ChrisFerdinandi
https://codepen.io/matuzo/pen/PoWQeem?editors=1010
https://gomakethings.com/live-vs.-static-nodelists-and-htmlcollections-in-vanilla-js/