syn-rsx icon indicating copy to clipboard operation
syn-rsx copied to clipboard

Allow self-closing tags without slash for empty elements

Open stoically opened this issue 3 years ago • 0 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

stoically avatar Jul 06 '22 23:07 stoically