浏览代码

fix(compiler-dom): add tfoot,caption,col element on bail stringification (#1333)

蜗牛老湿 6 年之前
父节点
当前提交
fbaf52ae9f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/compiler-dom/src/transforms/stringifyStatic.ts

+ 3 - 1
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: