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

Only output self-closing tags for void elements #46

Open vpzomtrrfrt opened 3 years ago

vpzomtrrfrt commented 3 years ago

From my reading of the spec, self-closing tags are only allowed for void elements of foreign elements. Not sure if there's any case where it's actually required, so for now I've changed it to only use self-closing tags for known void elements.

Should resolve #42