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
50b412e9
Commit
50b412e9
authored
May 10, 2002
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Route html end tag inside html comment inside a CDATA mode triggering tag
from 2.5 branch.
parent
518fe525
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
lib/python/TAL/tests/test_htmltalparser.py
lib/python/TAL/tests/test_htmltalparser.py
+11
-0
No files found.
lib/python/TAL/tests/test_htmltalparser.py
View file @
50b412e9
...
...
@@ -100,6 +100,17 @@ class HTMLTALParserTestCases(TestCaseBase):
self
.
_run_check
(
"<a><b></a></b>"
,
[])
self
.
assertRaises
(
HTMLTALParser
.
NestingError
,
check
)
def
check_cdata_mode
(
self
):
"""This routine should NOT detect an error with an end tag </a> not
matching the start <script> tag. The contents are within a
HTML comment, and should be ignored.
"""
s
=
"""<script>
\
n
<!--
\
n
document.write("</a>");
\
n
// -->
\
n
</script>"""
output
=
[
rawtext
(
s
),
]
self
.
_run_check
(
s
,
output
)
def
check_code_attr_syntax
(
self
):
output
=
[
rawtext
(
'<a b="v" c="v" d="v" e></a>'
),
...
...
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