mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18347: ElementTree's html serializer now preserves the case of closing tags.
This commit is contained in:
commit
6597aa16b6
3 changed files with 13 additions and 3 deletions
|
@ -742,6 +742,13 @@ class ElementTreeTest(unittest.TestCase):
|
|||
'<html><link><script>1 < 2</script></html>\n')
|
||||
self.assertEqual(serialize(e, method="text"), '1 < 2\n')
|
||||
|
||||
def test_issue18347(self):
|
||||
e = ET.XML('<html><CamelCase>text</CamelCase></html>')
|
||||
self.assertEqual(serialize(e),
|
||||
'<html><CamelCase>text</CamelCase></html>')
|
||||
self.assertEqual(serialize(e, method="html"),
|
||||
'<html><CamelCase>text</CamelCase></html>')
|
||||
|
||||
def test_entity(self):
|
||||
# Test entity handling.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue