jaml
jaml copied to clipboard
Produces invalid HTML when div has no content
The code
div({ cls: 'rect1' });
produces
<div class="rect1"/>
which is not valid HTML!
What possessed you to keep a list of non-self-closing tags and have all others self-close, rather than specifying a (very small) list of tags that can self-close?
notSelfClosingTags: ['textarea', 'script', 'em', 'strong', 'option', 'select']
/* and by implication, everything else is self-closing!!!! */
This is clearly very silly.