From 1bdebd326cec9699cd18f040a32a79b8b925eb84 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Tue, 21 Aug 2012 09:13:11 -0400 Subject: Fixed a problem with the html5lib builder not handling comments correctly. --- bs4/tests/test_html5lib.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bs4/tests') diff --git a/bs4/tests/test_html5lib.py b/bs4/tests/test_html5lib.py index f195f7d..0e1c1d8 100644 --- a/bs4/tests/test_html5lib.py +++ b/bs4/tests/test_html5lib.py @@ -56,3 +56,17 @@ class HTML5LibBuilderSmokeTest(SoupTest, HTML5TreeBuilderSmokeTest): "" "" "
Foo
Bar
Baz
") + + def test_xml_declaration_followed_by_doctype(self): + markup = ''' + + + + + +

foo

+ +''' + soup = self.soup(markup) + # Verify that we can reach the

tag; this means the tree is connected. + self.assertEquals("

foo

", soup.p.encode()) -- cgit v1.2.3