From 6e13d74eaabcaf39d261204777763e32172e0ec5 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Wed, 15 Feb 2012 12:05:15 -0500 Subject: Clarified comment. --- bs4/builder/_html5lib.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bs4/builder/_html5lib.py') 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)) -- cgit v1.2.3