Bug at code with nested <ul>

30 views
Skip to first unread message

binha...@gmail.com

unread,
Nov 4, 2014, 8:45:29 AM11/4/14
to tagsoup...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages