mirror of
https://github.com/python/cpython.git
synced 2025-08-21 17:25:34 +00:00
#13987: HTMLParser is now able to handle malformed start tags.
This commit is contained in:
parent
d2307cb48a
commit
65d36dab4d
3 changed files with 9 additions and 6 deletions
|
@ -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')])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue