stoically / syn-rsx

syn-powered parser for JSX-like TokenStreams

Home Page:https://crates.io/crates/syn-rsx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow self-closing tags without slash for empty elements

stoically opened this issue · comments

Currently self-closing empty elements require a slash. E.g. <br/> is currently needed, but just writing <br> should also work.

This should probably be a configuration option, so that it's possible to disable the behavior to keep backwards compatibility.

See also https://developer.mozilla.org/en-US/docs/Glossary/Empty_element