Why can't Aurelia deal with self-closing require elements?
For example:
<require from="component"></require> works
<require from="component"/> doesn't work
No error is given, yet the entire template will fail if you try to use the self-closing element.
According to the HTML specification, there are just a few void elements (elements that only have a start tag), which are:
area,base,br,col,embed,hr,img,input,keygen,link,meta,param,source,track,wbr.https://www.w3.org/TR/html5/syntax.html#void-elements.
Aurelia uses the browser's native DOMParser, which means it follows the same set of standards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With