]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-dom): add tfoot,caption,col element on bail stringification (#1333)
author蜗牛老湿 <shengxinjing@users.noreply.github.com>
Wed, 10 Jun 2020 18:24:51 +0000 (02:24 +0800)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2020 18:24:51 +0000 (14:24 -0400)
packages/compiler-dom/src/transforms/stringifyStatic.ts

index 1758714253bab8bd42f01c5951fa06d7e8fc33bd..b34377e25c32ae02e48ad507a7246638b50026f4 100644 (file)
@@ -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: