mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
#15156: HTMLParser now uses the new "html.entities.html5" dictionary.
This commit is contained in:
parent
a504a7a7d1
commit
46495182d0
4 changed files with 22 additions and 21 deletions
|
@ -456,7 +456,7 @@ class HTMLParserTolerantTestCase(HTMLParserStrictTestCase):
|
|||
self._run_check('<form action="/xxx.php?a=1&b=2&", '
|
||||
'method="post">', [
|
||||
('starttag', 'form',
|
||||
[('action', '/xxx.php?a=1&b=2&'),
|
||||
[('action', '/xxx.php?a=1&b=2&'),
|
||||
(',', None), ('method', 'post')])])
|
||||
|
||||
def test_weird_chars_in_unquoted_attribute_values(self):
|
||||
|
@ -541,6 +541,11 @@ class HTMLParserTolerantTestCase(HTMLParserStrictTestCase):
|
|||
self.assertEqual(p.unescape('&'),'&')
|
||||
# see #12888
|
||||
self.assertEqual(p.unescape('{ ' * 1050), '{ ' * 1050)
|
||||
# see #15156
|
||||
self.assertEqual(p.unescape('ÉricÉric'
|
||||
'&alphacentauriαcentauri'),
|
||||
'ÉricÉric&alphacentauriαcentauri')
|
||||
self.assertEqual(p.unescape('&co;'), '&co;')
|
||||
|
||||
def test_broken_comments(self):
|
||||
html = ('<! not really a comment >'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue