diff options
Diffstat (limited to 'tests/test_lxml.py')
-rw-r--r-- | tests/test_lxml.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_lxml.py b/tests/test_lxml.py index 028b956..cba5522 100644 --- a/tests/test_lxml.py +++ b/tests/test_lxml.py @@ -298,8 +298,9 @@ class TestLXMLBuilderInvalidMarkup(SoupTest): markup = "<p>one<!DOCTYPE foobar>two</p>" self.assertSoupEquals(markup) - #def testJunkInDeclaration(self): - # self.assertSoupEquals('<! Foo = -8>a', '<!Foo = -8>a') + def test_nonsensical_declaration(self): + # Declarations that don't make any sense are ignored. + self.assertSoupEquals('<! Foo = -8><p>a</p>', "<p>a</p>") def test_cdata_where_it_doesnt_belong(self): #CDATA sections are ignored. |