Browse Source

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

蜗牛老湿 6 years ago
parent
commit
fbaf52ae9f
1 changed files with 3 additions and 1 deletions
  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: