diff options
Diffstat (limited to 'src/beautifulsoup/tests/test_html5lib.py')
-rw-r--r-- | src/beautifulsoup/tests/test_html5lib.py | 9 |
1 files changed, 9 insertions, 0 deletions
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( '<blockquote><p><b>Foo</blockquote><p>Bar', '<blockquote><p><b>Foo</b></p></blockquote><p><b>Bar</b></p>') + + def test_incorrectly_nested_tables(self): + self.assertSoupEquals( + '<table><tr><table><tr id="nested">', + ('<table><tbody><tr></tr></tbody></table>' + '<table><tbody><tr id="nested"></tr></tbody></table>')) + + + |