Using the lwc:inner-html directive on a void element with the @lwc/ssr-compiler does not throw #5006
Labels
BUG P3
SSR
Up for grabs
Issues that are relatively small, self-contained, and ready for implementation
USER STORY
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
Expected Results
The error
Invalid count value
is logged and the template is not renderedActual Results
The input is rendered as a void element without children and the compiler does not throw
The text was updated successfully, but these errors were encountered: