diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 22:05:13 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 22:05:13 -0500 |
commit | 1fc68b4ffb4f0d46211aa23d814926e2bd685473 (patch) | |
tree | 8516795139b1b00eb529ddcdbd0f8f3234561d79 /tests/test_lxml.py | |
parent | 660ec0cf6b64f2ab3e3aac108b8be9c5037f18a1 (diff) |
Added a test to verify that bug 369897 is fixed.
Diffstat (limited to 'tests/test_lxml.py')
-rw-r--r-- | tests/test_lxml.py | 6 |
1 files changed, 6 insertions, 0 deletions
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): '<table><tr><table><tr id="nested">', '<table><tr><table><tr id="nested"></tr></table></tr></table>') + def test_paragraphs_containing_block_display_elements(self): + markup = self.soup("<p>this is the definition:" + "<dl><dt>first case</dt>") + # The <p> tag is closed before the <dl> tag begins. + self.assertEquals(markup.p.contents, ["this is the definition:"]) + def test_empty_element_tag_with_contents(self): self.assertSoupEquals("<br>foo</br>", "<br />foo") |