render.rs icon indicating copy to clipboard operation
render.rs copied to clipboard

Emitted output uses "self-closing" tags

Open andylovescode opened this issue 1 year ago • 0 comments

The emitted output uses self-closing tags for empty elements, this could cause some edge cases because self-closing tags aren't real.

<div /> is the same as <div>, the slash is ignored.

In XML and XHTML, <div /> means <div></div>, but not in HTML.

Solution

Emit <div></div>, not <div />

andylovescode avatar Aug 19 '24 19:08 andylovescode