summaryrefslogtreecommitdiff
path: root/beautifulsoup/builder/lxml_builder.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-13 18:04:03 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-13 18:04:03 -0500
commit4191d5ff45015c6fac1db0bbdd7b3fcaff234424 (patch)
tree9ea55039f365a6f62f7bff751be730ce8f75398a /beautifulsoup/builder/lxml_builder.py
parent84d7f8dd319039d385b9afe1da751006be2c9859 (diff)
Clarified lxml's behavior w/r/t CDATA sections.
Diffstat (limited to 'beautifulsoup/builder/lxml_builder.py')
-rw-r--r--beautifulsoup/builder/lxml_builder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/beautifulsoup/builder/lxml_builder.py b/beautifulsoup/builder/lxml_builder.py
index 4e83bba..86ac183 100644
--- a/beautifulsoup/builder/lxml_builder.py
+++ b/beautifulsoup/builder/lxml_builder.py
@@ -6,8 +6,8 @@ class LXMLTreeBuilder(HTMLTreeBuilder):
def __init__(self, parser_class=etree.HTMLParser):
# etree.HTMLParser's constructor has an argument strip_cdata,
- # but it does nothing. CDATA sections will become text when
- # passed through etree.HTMLParser.
+ # but it does nothing. CDATA sections are always stripped when
+ # passed through HTMLParser.
self.parser = parser_class(target=self)
self.soup = None