Commit ee109549 authored by Fred Drake's avatar Fred Drake

finish_starttag():  Make sure we do not close too many levels; this was
    possible with some interactions between nested tables.
parent da558b88
......@@ -191,7 +191,8 @@ class HTMLTALParser(HTMLParser):
for i in range(len(self.tagstack)):
t = self.tagstack[i]
if t in blocks_to_close:
close_to = i
if close_to == -1:
close_to = i
elif t in BLOCK_LEVEL_HTML_TAGS:
close_to = -1
self.close_to_level(close_to)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment