From a8ca557241716636bca4697d4894278ed3d22ce4 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Wed, 29 Dec 2010 19:08:27 -0500 Subject: Moved over a test for incorrectly nested tables. --- src/beautifulsoup/tests/helpers.py | 6 ++++++ src/beautifulsoup/tests/test_html5lib.py | 9 +++++++++ 2 files changed, 15 insertions(+) (limited to 'src') diff --git a/src/beautifulsoup/tests/helpers.py b/src/beautifulsoup/tests/helpers.py index c8189e3..20d087e 100644 --- a/src/beautifulsoup/tests/helpers.py +++ b/src/beautifulsoup/tests/helpers.py @@ -145,4 +145,10 @@ class BuilderInvalidMarkupSmokeTest(SoupTest): soup = self.soup("
foo
") self.assertEquals(soup.table.td['nowrap'], '') + def test_incorrectly_nested_tables(self): + self.assertSoupEquals( + '
', + '
') + + diff --git a/src/beautifulsoup/tests/test_html5lib.py b/src/beautifulsoup/tests/test_html5lib.py index f66e750..4ffd968 100644 --- a/src/beautifulsoup/tests/test_html5lib.py +++ b/src/beautifulsoup/tests/test_html5lib.py @@ -22,3 +22,12 @@ class TestHTML5BuilderInvalidMarkup(BuilderInvalidMarkupSmokeTest): self.assertSoupEquals( '

Foo

Bar', '

Foo

Bar

') + + def test_incorrectly_nested_tables(self): + self.assertSoupEquals( + '
', + ('
' + '
')) + + + -- cgit v1.2.3