Ins: skip empty

Back to Ins homepage

prev next

Empty elements are removed unless they have ins-keep-empty boolean attribute. Attributes containing empty string are removed in all cases. Void elements are allways kept.
<div ins-keep-empty id="first" class=""></div>
<div id="second"></div>
<input required>

Result