External SVGs are not rendered #13280
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-svg
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Milestone
External SVGs are rendered into the DOM but are not visually rendered by the browser (Chrome, Edge Chromium in my case).
It appears this issue is due to the way how the DOM is updated in BrowserRenderer.ts.
This issue seems very similiar to this issue: https://github.com/aspnet/Blazor/issues/366
I did some research and it appears this is maybe the reason:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
circle.svg
withinwwwroot
Folder with this content:Expected behavior
The browser treats this as normal html with external svg and renders it properly
Actual Behavior
The browser does not display the svg.
The text was updated successfully, but these errors were encountered: