#13987: HTMLParser is now able to handle malformed start tags.

This commit is contained in:
Ezio Melotti 2012-02-15 13:19:10 +02:00
parent d2307cb48a
commit 65d36dab4d
3 changed files with 9 additions and 6 deletions

View file

@ -206,7 +206,8 @@ text
self._run_check("</$>", [('comment', '$')])
self._run_check("</", [('data', '</')])
self._run_check("</a", [('data', '</a')])
self._parse_error("<a<a>")
# XXX this might be wrong
self._run_check("<a<a>", [('data', '<a'), ('starttag', 'a', [])])
self._run_check("</a<a>", [('endtag', 'a<a')])
self._run_check("<!", [('data', '<!')])
self._run_check("<a", [('data', '<a')])