DOM live vs static collections querySelectorAll() returns a static NodeList. getElementsByClassName() returns a live HTMLCollection.