diff --git a/compiler/parse/state/tag.js b/compiler/parse/state/tag.js index 322972abf3..7d9ff77836 100644 --- a/compiler/parse/state/tag.js +++ b/compiler/parse/state/tag.js @@ -6,7 +6,7 @@ import { trimStart, trimEnd } from '../utils/trim.js'; import { decodeCharacterReferences } from '../utils/html.js'; const validTagName = /^[a-zA-Z]{1,}:?[a-zA-Z0-9\-]*/; -const voidElementNames = /^(?:area|base|br|col|command|doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i; +const voidElementNames = /^(?:area|base|br|col|command|doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/; const invalidUnquotedAttributeCharacters = /[\s"'=<>\/`]/; const specials = { diff --git a/test/compiler/component-not-void/Link.html b/test/compiler/component-not-void/Link.html new file mode 100644 index 0000000000..e147954fa0 --- /dev/null +++ b/test/compiler/component-not-void/Link.html @@ -0,0 +1 @@ +

{{yield}}

diff --git a/test/compiler/component-not-void/_config.js b/test/compiler/component-not-void/_config.js new file mode 100644 index 0000000000..174d01f1a5 --- /dev/null +++ b/test/compiler/component-not-void/_config.js @@ -0,0 +1,3 @@ +export default { + html: '

Hello

' +}; diff --git a/test/compiler/component-not-void/main.html b/test/compiler/component-not-void/main.html new file mode 100644 index 0000000000..99f9a931b4 --- /dev/null +++ b/test/compiler/component-not-void/main.html @@ -0,0 +1,11 @@ +Hello + +