Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
faa28298
Commit
faa28298
authored
May 14, 2002
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add double end tag to test cdata ignore
parent
5ee2de80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/python/TAL/tests/test_htmltalparser.py
lib/python/TAL/tests/test_htmltalparser.py
+2
-2
No files found.
lib/python/TAL/tests/test_htmltalparser.py
View file @
faa28298
...
...
@@ -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
<!--
\
n
document.write("</a>");
\
n
// -->
\
n
</script
>"""
s
=
"""<
html><script>
\
n
<!--
\
n
document.write("</a></b>");
\
n
// -->
\
n
</script></html
>"""
output
=
[
rawtext
(
s
),
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment