commit | 073148c4ef807732eaf42df4b7178cecfa0b58dc | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Mon Dec 03 16:44:09 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Mon Dec 03 16:44:09 2001 +0000 |
tree | fbe07af22c818c748cd056eb0adf89fa12733255 | |
parent | f07125ee53efcb29c83c051d6efee7c04df69a16 [diff] [blame] |
Add a test that makes sure unclosed entity references are handled consitently.
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 85e60e6..9d60dd8 100755 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py
@@ -134,6 +134,12 @@ ("data", "\n"), ]) + def test_unclosed_entityref(self): + self._run_check("&entityref foo", [ + ("entityref", "entityref"), + ("data", " foo"), + ]) + def test_doctype_decl(self): inside = """\ DOCTYPE html [