Open
Description
Description
@lwc/ssr-compiler behavior:
When rendering a void (self closing) element with the lwc:inner-html
directive, the compiler does not throw, but renders the element without any children.
@lwc/engine-server (expected) behavior:
When rendering a void element with lwc:inner-html
using @lwc/engine-server, the compiler does not render and an error is thrown.
Steps to Reproduce
<template>
<input type="text" lwc:inner-html="child content">
<span lwc:inner-html="child content"></span>
</template>
Expected Results
The error Invalid count value
is logged and the template is not rendered
Actual Results
The input is rendered as a void element without children and the compiler does not throw
Activity