From: 蜗牛老湿 Date: Wed, 10 Jun 2020 18:24:51 +0000 (+0800) Subject: fix(compiler-dom): add tfoot,caption,col element on bail stringification (#1333) X-Git-Tag: v3.0.0-beta.15~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbaf52ae9fdd412e517e7edf44544db5d759dd2c;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-dom): add tfoot,caption,col element on bail stringification (#1333) --- diff --git a/packages/compiler-dom/src/transforms/stringifyStatic.ts b/packages/compiler-dom/src/transforms/stringifyStatic.ts index 1758714253..b34377e25c 100644 --- a/packages/compiler-dom/src/transforms/stringifyStatic.ts +++ b/packages/compiler-dom/src/transforms/stringifyStatic.ts @@ -146,7 +146,9 @@ const replaceHoist = ( context.hoists[context.hoists.indexOf(hoistToReplace)] = replacement } -const isNonStringifiable = /*#__PURE__*/ makeMap(`thead,tr,th,tbody,td`) +const isNonStringifiable = /*#__PURE__*/ makeMap( + `caption,thead,tr,th,tbody,td,tfoot,colgroup,col` +) /** * for a hoisted node, analyze it and return: