Commit faa28298 authored by matt@zope.com's avatar matt@zope.com

Add double end tag to test cdata ignore

parent 5ee2de80
......@@ -101,7 +101,7 @@ class HTMLTALParserTestCases(TestCaseBase):
self.assertRaises(HTMLTALParser.NestingError, check)
def check_cdata_mode(self):
"""This routine should NOT detect an error with an end tag </a> not
"""This routine should NOT detect an error with an end tag </a></b> not
matching the start <script> tag. The contents are within a
HTML comment, and should be ignored.
"""
......@@ -113,7 +113,7 @@ class HTMLTALParserTestCases(TestCaseBase):
# be recognized as an improperly nested end tag. See:
# http://www.w3.org/TR/html401/types.html#type-cdata
#
s = """<script>\n<!--\ndocument.write("</a>");\n// -->\n</script>"""
s = """<html><script>\n<!--\ndocument.write("</a></b>");\n// -->\n</script></html>"""
output = [
rawtext(s),
]
......
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