Skip to content

v-html with svg does not work #954

@stefnotch

Description

@stefnotch

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions