When using tagsoup 1.2.1 upon html code like:
<ul>
...
<ul>
..
is handled as
<ul>
...
</ul> //defective auto close
<ul>
...
I checked the source code, and found that UL was not regarded a member of UL. It caused the problem.
I change the code in HTMLSchema.java
old: elementType("ul", M_LI, M_BLOCK, 0);
to
new: elementType("ul", M_LI, M_BLOCK|M_LI, 0);
then the parse works fine some how.
Hope there will be an official fix.