summaryrefslogtreecommitdiff
path: root/beautifulsoup/builder
diff options
context:
space:
mode:
Diffstat (limited to 'beautifulsoup/builder')
-rw-r--r--beautifulsoup/builder/__init__.py2
-rw-r--r--beautifulsoup/builder/lxml_builder.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/beautifulsoup/builder/__init__.py b/beautifulsoup/builder/__init__.py
index 37e9c8a..deaa613 100644
--- a/beautifulsoup/builder/__init__.py
+++ b/beautifulsoup/builder/__init__.py
@@ -116,7 +116,7 @@ class SAXTreeBuilder(TreeBuilder):
class HTMLTreeBuilder(TreeBuilder):
"""This TreeBuilder knows facts about HTML.
- Such as which tags are self-closing tags.
+ Such as which tags are empty-element tags.
"""
assume_html = True
diff --git a/beautifulsoup/builder/lxml_builder.py b/beautifulsoup/builder/lxml_builder.py
index 0cc9e51..e431a62 100644
--- a/beautifulsoup/builder/lxml_builder.py
+++ b/beautifulsoup/builder/lxml_builder.py
@@ -13,9 +13,9 @@ class LXMLTreeBuilderForXML(TreeBuilder):
# will be instantiated with default arguments.
return etree.XMLParser
- def __init__(self, parser=None, self_closing_tags=None):
- if self_closing_tags is not None:
- self.self_closing_tags = set(self_closing_tags)
+ def __init__(self, parser=None, empty_element_tags=None):
+ if empty_element_tags is not None:
+ self.empty_element_tags = set(empty_element_tags)
if parser is None:
# Use the default parser.
parser = self.default_parser