Skip to content

Conversation

@SuggonM
Copy link

@SuggonM SuggonM commented Feb 22, 2025

Hello, good day. I've replaced a few non-standard methods with standard ones:

  • Changed the parser mimeType from text/html (result undesirably wrapped with <body>) into image/svg+xml[1]
  • Replaced the substitution method from innerHTML/outerHTML (which are considered unsafe) with the replaceChildren API[2]

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.

1 participant