Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
Zope
Commits
d799ceb2
Commit
d799ceb2
authored
23 years ago
by
Fred Drake
Browse files
Options
Download
Email Patches
Plain Diff
Add a test that makes sure unclosed entity references are handled consitently.
parent
6e49e7a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lib/python/TAL/tests/test_htmlparser.py
lib/python/TAL/tests/test_htmlparser.py
+6
-0
No files found.
lib/python/TAL/tests/test_htmlparser.py
View file @
d799ceb2
...
@@ -143,6 +143,12 @@ text
...
@@ -143,6 +143,12 @@ text
(
"data"
,
"
\n
"
),
(
"data"
,
"
\n
"
),
])
])
def
check_unclosed_entityref
(
self
):
self
.
_run_check
(
"&entityref foo"
,
[
(
"entityref"
,
"entityref"
),
(
"data"
,
" foo"
),
])
def
check_doctype_decl
(
self
):
def
check_doctype_decl
(
self
):
inside
=
"""
\
inside
=
"""
\
DOCTYPE html [
DOCTYPE html [
...
...
This diff is collapsed.
Click to expand it.
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