Skip to content

Conversation

charlag
Copy link
Contributor

@charlag charlag commented Aug 7, 2025

Chromium changed how HTML is serialized:

https://developer.chrome.com/release-notes/138?

https://chromestatus.com/feature/6264983847174144

whatwg/html#6235

Which caused some of our HTML sanitizing tests to fail.

To prevent any possible issues with serialization we instead create a Blob URL for our svg. This way we sidestep DOM serialization peculiarities. As a side effect DOM should be smaller.

Close #9465

Chromium changed how HTML is serialized:

https://developer.chrome.com/release-notes/138?

https://chromestatus.com/feature/6264983847174144

whatwg/html#6235

Which caused some of our HTML sanitizing tests to fail.

To prevent any possible issues with serialization we instead create
a Blob URL for our svg. This way we sidestep DOM serialization
peculiarities. As a side effect DOM should be smaller.

Close #9465

Co-authored-by: paw <paw-hub@users.noreply.github.com>
@charlag charlag linked an issue Aug 7, 2025 that may be closed by this pull request
11 tasks
@wrdhub wrdhub merged commit 149174f into dev-mail Aug 8, 2025
6 checks passed
@wrdhub wrdhub deleted the 9465-fix-sanitizer-tests branch August 8, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTMLSanitizer test failiures due to serialization changes
2 participants