We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f11a0 commit bd63490Copy full SHA for bd63490
Lib/test/test_htmlparser.py
@@ -397,9 +397,15 @@ def test_convert_charrefs(self):
397
('starttag', 'script', []), ('data', text),
398
('endtag', 'script'), ('data', '"'),
399
('starttag', 'style', []), ('data', text),
400
- ('endtag', 'style'), ('data', '"')]
+ ('endtag', 'style'), ('data', '"'),
401
+ ('starttag', 'title', []), ('data', text),
402
+ ('endtag', 'title'), ('data', '"'),
403
+ ('starttag', 'textarea', []), ('data', text),
404
+ ('endtag', 'textarea'), ('data', '"')]
405
self._run_check('{1}<script>{0}</script>{1}'
- '<style>{0}</style>{1}'.format(text, charref),
406
+ '<style>{0}</style>{1}'
407
+ '<title>{0}</title>{1}'
408
+ '<textarea>{0}</textarea>{1}'.format(text, charref),
409
expected, collector=collector())
410
# check truncated charrefs at the end of the file
411
html = '&quo &# &#x'
0 commit comments