Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-html with svg does not work #954

Closed
stefnotch opened this issue Apr 12, 2020 · 0 comments · Fixed by #956
Closed

v-html with svg does not work #954

stefnotch opened this issue Apr 12, 2020 · 0 comments · Fixed by #956

Comments

@stefnotch
Copy link

Version

3.0.0-alpha.12

Reproduction link

https://jsfiddle.net/Lb81yw4a/

Steps to reproduce

Create a svg with v-html.

<svg v-html="'<g></g>'"></svg>

Regarding the reproduction project, you have to open the browser dev tools and inspect the element to see the issue.

What is expected?

A svg that contains the HTML

<div id="app"><div><svg><g></g></svg></div></div>

What is actually happening?

A svg with an innerHTML attribute.

<div id="app"><div><svg innerHTML="<g></g>"></svg></div></div>
underfin added a commit to underfin/vue-next that referenced this issue Apr 13, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant