From 1fc68b4ffb4f0d46211aa23d814926e2bd685473 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sun, 27 Feb 2011 22:05:13 -0500 Subject: Added a test to verify that bug 369897 is fixed. --- tests/test_lxml.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/test_lxml.py') diff --git a/tests/test_lxml.py b/tests/test_lxml.py index 36f0340..c2b40c3 100644 --- a/tests/test_lxml.py +++ b/tests/test_lxml.py @@ -355,6 +355,12 @@ class TestLXMLBuilderInvalidMarkup(SoupTest): '
', '
') + def test_paragraphs_containing_block_display_elements(self): + markup = self.soup("

this is the definition:" + "

first case
") + # The

tag is closed before the

tag begins. + self.assertEquals(markup.p.contents, ["this is the definition:"]) + def test_empty_element_tag_with_contents(self): self.assertSoupEquals("
foo
", "
foo") -- cgit v1.2.3