mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Issue #6662: Fix parsing of malformatted charref (&#bad;)
This commit is contained in:
parent
f0757a2937
commit
554a3b82e4
3 changed files with 12 additions and 0 deletions
|
@ -313,6 +313,13 @@ DOCTYPE html [
|
|||
("starttag", "html", [("foo", u"\u20AC&aa&unsupported;")])
|
||||
])
|
||||
|
||||
def test_malformatted_charref(self):
|
||||
self._run_check("<p>&#bad;</p>", [
|
||||
("starttag", "p", []),
|
||||
("data", "&#bad;"),
|
||||
("endtag", "p"),
|
||||
])
|
||||
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(HTMLParserTestCase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue