summaryrefslogtreecommitdiff
path: root/tests/test_lxml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_lxml.py')
-rw-r--r--tests/test_lxml.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_lxml.py b/tests/test_lxml.py
index 9a65f6a..207d141 100644
--- a/tests/test_lxml.py
+++ b/tests/test_lxml.py
@@ -273,3 +273,7 @@ class TestLXMLBuilderInvalidMarkup(SoupTest):
markup = "<p>one<!DOCTYPE foobar>two</p>"
self.assertSoupEquals(markup)
+ def test_cdata_where_it_doesnt_belong(self):
+ #CDATA sections are ignored.
+ markup = "<div><![CDATA[foo]]>"
+ self.assertSoupEquals(markup, "<div></div>")