Subscribe on changes!

Multiple self-closing tags render only the first one

avatar
Apr 5th 2021

Version

3.0.11

Reproduction link

https://codepen.io/ds2013/pen/LYxLQWa

Steps to reproduce

None

What is expected?

Multiple self-closing tags render all

What is actually happening?

None

self-closing

avatar
Apr 5th 2021

For the browser, <user-name> is a custom tag, and the custom tag requires a closing tag. Only certain tags in HTML are allowed to be self-closing: https://html.spec.whatwg.org/multipage/syntax.html#void-elements, and a non-void element must have an end tag, also see https://github.com/WICG/webcomponents/issues/624