[ZPT] CVS: Releases/Zope/lib/python/TAL/tests - test_htmltalparser.py:1.28
Matthew T. Kromer
matt@zope.com
Tue, 14 May 2002 11:24:10 -0400
Update of /cvs-repository/Releases/Zope/lib/python/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv13305
Modified Files:
test_htmltalparser.py
Log Message:
Add double end tag to test cdata ignore
=== Releases/Zope/lib/python/TAL/tests/test_htmltalparser.py 1.27 => 1.28 ===
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 @@
# 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),
]