Skip to content

Commit 82e4593

Browse files
authored
fix(runtime): use key variable for svg innerHTML
Close #11787
1 parent 70f497e commit 82e4593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/platforms/web/runtime/modules/dom-props.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
5151
} else if (key === 'innerHTML' && isSVG(elm.tagName) && isUndef(elm.innerHTML)) {
5252
// IE doesn't support innerHTML for SVG elements
5353
svgContainer = svgContainer || document.createElement('div')
54-
svgContainer.innerHTML = `<svg>${cur}</svg>`
54+
svgContainer[key] = `<svg>${cur}</svg>`
5555
const svg = svgContainer.firstChild
5656
while (elm.firstChild) {
5757
elm.removeChild(elm.firstChild)

0 commit comments

Comments
 (0)