Page:
Component (img.webc):
<script webc:type="js" webc:root webc:raw>
`<img>`;
</script>
Currently renders:
In WebC v0.9.0 you can add webc:root="override" in your component definition (previously it was webc:root webc:keep) to workaround this issue.
ALL OF THAT SAID, I do think void element markup should be ignored in the rendered output by default when the host definition outputs markup.
New expected output
Component (img.webc): (even without webc:root webc:raw)
<script webc:type="js">
`<img>`;
</script>
Should render as:
Page:
Component (
img.webc):Currently renders:
In WebC v0.9.0 you can add
webc:root="override"in your component definition (previously it waswebc:root webc:keep) to workaround this issue.ALL OF THAT SAID, I do think void element markup should be ignored in the rendered output by default when the host definition outputs markup.
New expected output
Component (
img.webc): (even withoutwebc:root webc:raw)Should render as: