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

This commit is contained in:
蜗牛老湿 2020-06-11 02:24:51 +08:00 committed by GitHub
parent 4c542d5033
commit fbaf52ae9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,9 @@ const replaceHoist = (
context.hoists[context.hoists.indexOf(hoistToReplace)] = replacement 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: * for a hoisted node, analyze it and return: