Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MathML should not be wiped by DomSanitizer #61013

Copy link
Copy link
Open
@polx

Description

@polx
Issue body actions

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

No one assigned

    Labels

    P3An 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 urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimebugcore: sanitizationstate: needs more investigation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.