From a07a28ac10e5686d096fd0f4225e01ff137ec80f Mon Sep 17 00:00:00 2001 From: Geoffrey Sneddon Date: Tue, 8 Dec 2015 16:02:57 +0000 Subject: Fix foster parenting with html5lib. This makes all of the html5lib tests pass. Yay! --- bs4/tests/test_html5lib.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bs4/tests/test_html5lib.py') diff --git a/bs4/tests/test_html5lib.py b/bs4/tests/test_html5lib.py index 65536c2..34883fe 100644 --- a/bs4/tests/test_html5lib.py +++ b/bs4/tests/test_html5lib.py @@ -96,3 +96,8 @@ class HTML5LibBuilderSmokeTest(SoupTest, HTML5TreeBuilderSmokeTest): a1, a2 = soup.find_all('a') self.assertEqual(a1, a2) assert a1 is not a2 + + def test_foster_parenting(self): + markup = b"""A""" + soup = self.soup(markup) + self.assertEqual(u"A
", soup.body.decode()) -- cgit v1.2.3