Browsers do ignore the '/' and treat <br/> and <br> as synonyms
Hyperx works fine if you put in a space - <br />
It should be easy to change the parser to support this. Its probably a ~2 line change to stop parsing the tag name when the parser sees a '/' character. Make a unit test, fix the code and submit a PR.
I tried to modify hyperapp's
counter
example. When inserting a line-break<br/>
it broke. 🙁Console
Minimal Repro
Meta
Corresponding issue on hyperapp's repo.
Related to substack/hyperx#34.
Note that I do realize that
<br>
works.<br/>
is more explicit though and as a React-user I'd like to keep this pattern.