diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 09:54:42 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 09:54:42 -0500 |
commit | ae349fd47c627f8166526fed8906811707d2f4b2 (patch) | |
tree | 116edd8c1d9a7cf6348f784162fd2291608833c2 /tests/test_html5lib.py | |
parent | 158e76fd3e1005f6f5f932414cb741083d114cb6 (diff) | |
parent | 9f437ea591aeaf16d593350baf081315e56a8b73 (diff) |
Greatly improved the handling of empty-element tags.
Diffstat (limited to 'tests/test_html5lib.py')
-rw-r--r-- | tests/test_html5lib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_html5lib.py b/tests/test_html5lib.py index 336f9a5..021c603 100644 --- a/tests/test_html5lib.py +++ b/tests/test_html5lib.py @@ -91,6 +91,9 @@ class TestHTML5BuilderInvalidMarkup(TestLXMLBuilderInvalidMarkup): ('<table><tbody><tr></tr></tbody></table>' '<table><tbody><tr id="nested"></tr></tbody></table>')) + def test_empty_element_tag_with_contents(self): + self.assertSoupEquals("<br>foo</br>", "<br />foo<br />") + def test_doctype_in_body(self): markup = "<p>one<!DOCTYPE foobar>two</p>" self.assertSoupEquals(markup, "<p>onetwo</p>") |