From fbaf52ae9fdd412e517e7edf44544db5d759dd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=9C=97=E7=89=9B=E8=80=81=E6=B9=BF?= Date: Thu, 11 Jun 2020 02:24:51 +0800 Subject: [PATCH] fix(compiler-dom): add tfoot,caption,col element on bail stringification (#1333) --- packages/compiler-dom/src/transforms/stringifyStatic.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/compiler-dom/src/transforms/stringifyStatic.ts b/packages/compiler-dom/src/transforms/stringifyStatic.ts index 17587142..b34377e2 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: