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.pull/509/head
parent
e8bb7f722f
commit
977be42d1f
Loading…
Reference in New Issue