Parcourir la source

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

蜗牛老湿 il y a 6 ans
Parent
commit
fbaf52ae9f
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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: