SIGN IN SIGN UP

fix: snapshot attributes in DOM.removeAttributes to avoid skipping them (#8189)

* fix: snapshot attributes in DOM.removeAttributes to avoid skipping them

Iterating the live NamedNodeMap from elem.attributes while calling removeAttribute skips the attribute directly after a removed one, so a second dangerous attribute can survive DOM.sanitize. Snapshot the collection with Array.from before iterating.

* docs: add PR number to changelog entry
S
Salman Aljardan committed
1da69f3cd913a39fa948708e01478663bf48bc27
Parent: ac8580b
Committed by GitHub <noreply@github.com> on 8/18/2026, 1:01:09 PM