Open
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
If content is stored in variables and the DOM gets assigned by this variable as an innerHTML, the content is sanitized. This can be understood.
However, sanitization removes any MathML element. This cannot be understood as MathML is now part of HTML.
Please provide a link to a minimal reproduction of the bug
https://perf-eval-mathrender.hoplahup.net/
Please provide the exception or error you saw
go to that page, then click on any link in the MathML column: if you clicked the link, the router takes you to that page using JavaScript only, the mathematical formulæ are broken: all Math elements dissapear. If you reload the page it works, the MathML elements have been preserved.
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 17.3.11
Node: 23.1.0 (Unsupported)
Package Manager: npm 10.9.0
OS: darwin arm64
Angular: 17.3.12
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1703.11
@angular-devkit/build-angular 17.3.11
@angular-devkit/core 17.3.11
@angular-devkit/schematics 17.3.11
@angular/cli 17.3.11
@angular/ssr 17.3.11
@schematics/angular 17.3.11
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.10
Anything else?
No response
Metadata
Metadata
Assignees
Labels
An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentIssues related to the framework runtimeIssues related to the framework runtime