The interactive example cannot be shown because MathML is not supported by
your browser.
<p>Element with no content:</p>
<div></div>
<p>Element with comment:</p>
<div><!-- Simple Comment --></div>
<p>Element with whitespace:</p>
<div> </div>
<p>Element with nested empty element:</p>
<div><p></p></div>