Seanster - 2014-12-12

So here I have a couple of sloppy unclosed font tags in a snippet of html. The cleaner is throwing font tags everywhere. Is this expected behaviour or is something wrong with the cleaning?

raw

<p>unclosed p<font id="Symbol2">&#8220;badfont1<font id="Symbol2">&#8221;badfont2 unclosed p
<div class="div1">
<h2>heading</h2>
<div class="div2">
<ul>
<li>li1</li><li>li2</li>
</ul>
</div>
unclosed div1

cleaned

<p>unclosed p
<font id="Symbol2">&ldquo;badfont1
<font id="Symbol2">&rdquo;badfont2 unclosed p </font></font></p><div class="div1"><font id="Symbol2"><font id="Symbol2"> </font></font><h2><font id="Symbol2"><font id="Symbol2">heading</font></font></h2><div class="div2"><font> </font><ul><font> </font><li><font>li1</font></li><li><font>li2</font></li></ul></div><font> unclosed div1</font></div>

Here's my command line settings:

outputtype=htmlcompact
advancedxmlescape=false
specialentities=false
unicodechars=false
omitcomments=true
omitxmldecl=true
omitdoctypedecl=true
omithtmlenvelope=true
useemptyelementtags=true

(This is based on the latest repository, 3.11?)

I apologize if this is a duplicate. I posted this a week ago and it flashed "held for moderation" on my screen and then promptly disappeared. Had to rewrite it from memory.