Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix link normalization for live HTMLCollections
Newer versions of JSDOM implement getElementsByTagName correctly. This means it returns a live node list. When calling `Element.replaceChild` for links inside the loop over that collection, elements disappear from the list, meaning we miss every other item. Without this fix, the `clean-links` testcase breaks.
- Loading branch information