10000 test for incorrect handling of HTML elements with optional closing ta… · awesome-python/html5lib-python@8994f73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8994f73

Browse files
committed
test for incorrect handling of HTML elements with optional closing tags in XML parser
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40530
1 parent 814c703 commit 8994f73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_lxp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def test_comment(self):
7070
def test_cdata(self):
7171
self.assertXmlEquals("<x><![CDATA[foo]]></x>","<x>foo</x>")
7272

73+
def test_html_optional_close(self):
74+
self.assertXmlEquals("<p>foo</p>","<p>foo</p>")
75+
7376
class OpmlTest(Xhtml5Test):
7477

7578
def test_mixedCaseElement(self):

0 commit comments

Comments
 (0)
0