Commit fafd56f4 authored by Fred Drake's avatar Fred Drake

Add test that demonstrates SGML-style handling of processing

instructions.
parent 24315238
...@@ -101,6 +101,9 @@ class HTMLParserTestCase(TestCaseBase): ...@@ -101,6 +101,9 @@ class HTMLParserTestCase(TestCaseBase):
self._run_check("<?processing instruction>", [ self._run_check("<?processing instruction>", [
("pi", "processing instruction"), ("pi", "processing instruction"),
]) ])
self._run_check("<?processing instruction ?>", [
("pi", "processing instruction ?"),
])
def test_simple_html(self): def test_simple_html(self):
self._run_check(""" self._run_check("""
......
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