Don't store indexes into a live HTMLCollection, they are not stable over time. Just use the DOM element directly. Use querySelectorAll() -> NodeList instead of getElementsByTagName() -> HTMLCollection because HTMLCollection does not have forEach but NodeList does.
Don't store indexes into a live HTMLCollection, they are not stable over time. Just use the DOM element directly. Use
querySelectorAll() -> NodeList
instead ofgetElementsByTagName() -> HTMLCollection
because HTMLCollection does not have forEach but NodeList does.Fixes #1438