Skip to content

Commit

Permalink
fix(compiler-dom): add tfoot,caption,col element on bail stringificat…
Browse files Browse the repository at this point in the history
…ion (#1333)
  • Loading branch information
蜗牛老湿 authored Jun 10, 2020
1 parent 4c542d5 commit fbaf52a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/compiler-dom/src/transforms/stringifyStatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fbaf52a

Please sign in to comment.