Commit 12d669c1 authored by Guido van Rossum's avatar Guido van Rossum

Make the cdata test more stringent, testing for a bug in the current

code.
parent 153676ac
......@@ -243,6 +243,7 @@ text
def check_cdata_content(self):
s = """<script> <!-- not a comment --> &not-an-entity-ref; </script>"""
s = list(s)
self._run_check(s, [
("starttag", "script", []),
("data", " <!-- not a comment --> &not-an-entity-ref; "),
......
......@@ -243,6 +243,7 @@ text
def check_cdata_content(self):
s = """<script> <!-- not a comment --> &not-an-entity-ref; </script>"""
s = list(s)
self._run_check(s, [
("starttag", "script", []),
("data", " <!-- not a comment --> &not-an-entity-ref; "),
......
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