SVG is not transformed to `_createStaticVNode`
Version
3.2.0-beta.8
Reproduction link
Steps to reproduce
Pass a large svg.
What is expected?
_createStaticVNode
is used instead of _createElementVNode
.
Like it behaves with <div>
.
What is actually happening?
_createElementVNode
is used.
isStringifiableAttr
is false
here because
https://github.com/vuejs/vue-next/blob/870f2a7ba35245fd8c008d2ff666ea130a7e4704/packages/compiler-dom/src/transforms/stringifyStatic.ts#L190
isKnownAttr
is false.
https://github.com/vuejs/vue-next/blob/4781965cc2396b51028a05917a3b057f884bc0b7/packages/shared/src/domAttrConfig.ts#L69
Would it be ok to add svg attributes (https://www.w3.org/TR/SVG/attindex.html) to this?