From 82e4593a6df5dda1e67350a8cf655fcd3bbda26f Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 24 Nov 2020 09:20:49 +0100 Subject: [PATCH] fix(runtime): use key variable for svg innerHTML Close #11787 --- src/platforms/web/runtime/modules/dom-props.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/web/runtime/modules/dom-props.js b/src/platforms/web/runtime/modules/dom-props.js index c2499496..0b5451c2 100644 --- a/src/platforms/web/runtime/modules/dom-props.js +++ b/src/platforms/web/runtime/modules/dom-props.js @@ -51,7 +51,7 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) { } else if (key === 'innerHTML' && isSVG(elm.tagName) && isUndef(elm.innerHTML)) { // IE doesn't support innerHTML for SVG elements svgContainer = svgContainer || document.createElement('div') - svgContainer.innerHTML = `${cur}` + svgContainer[key] = `${cur}` const svg = svgContainer.firstChild while (elm.firstChild) { elm.removeChild(elm.firstChild)