render-rs / render.rs

🔏 A safe and simple template engine with the ergonomics of JSX
https://docs.rs/render
MIT License
238 stars 23 forks source link

Emitted output uses "self-closing" tags #52

Open andylovescode opened 3 months ago

andylovescode commented 3 months ago

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 />