Skip to content

Commit da868db

Browse files
committed
test: include raw text and escapable raw text elements in cdata content test
1 parent bd63490 commit da868db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_htmlparser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ def test_cdata_content(self):
285285
#'foo = </\nscript>',
286286
#'foo = </ script>',
287287
]
288-
elements = ['script', 'style', 'SCRIPT', 'TEXTAREA', 'Script', 'Textarea']
288+
tags = ['script', 'style', 'textarea', 'title']
289+
# test the following 'casing' for each tag: script, SCRIPT, Script etc.
290+
elements = [f(tag) for tag in tags for f in (str.lower, str.upper, str.capitalize)]
289291
for content in contents:
290292
for element in elements:
291293
element_lower = element.lower()

0 commit comments

Comments
 (0)