summaryrefslogtreecommitdiff
path: root/bs4/builder/_html5lib.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-02-15 12:05:15 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-02-15 12:05:15 -0500
commit6e13d74eaabcaf39d261204777763e32172e0ec5 (patch)
tree12697d712d9cb35f2e79d573cf4494bb38775882 /bs4/builder/_html5lib.py
parent8d17a394988fb70edbf4cc981ca6799964ae5d52 (diff)
Clarified comment.
Diffstat (limited to 'bs4/builder/_html5lib.py')
-rw-r--r--bs4/builder/_html5lib.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bs4/builder/_html5lib.py b/bs4/builder/_html5lib.py
index dccad83..0d7a1a9 100644
--- a/bs4/builder/_html5lib.py
+++ b/bs4/builder/_html5lib.py
@@ -148,10 +148,8 @@ class Element(html5lib.treebuilders._base.Node):
# The attributes may contain variables that need substitution.
# Call set_up_substitutions manually.
#
- # The Tag constructor calls this method automatically,
- # but html5lib creates a Tag object before setting up
- # its attributes, so Tags are initially created with no
- # attributes.
+ # The Tag constructor called this method when the Tag was created,
+ # but we just set/changed the attributes, so call it again.
self.element.contains_substitutions = (
self.soup.builder.set_up_substitutions(
self.element))