boostorg / website-v2

New Boost website
https://boost.io
Boost Software License 1.0
8 stars 13 forks source link

Fix ValidateGitImages when there are multiple broken images #1442

Closed gavinwahl closed 1 week ago

gavinwahl commented 1 week ago

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.

Fixes #1438