summaryrefslogtreecommitdiff
path: root/bs4/builder/_html5lib.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2013-05-20 11:30:44 -0400
committerLeonard Richardson <leonardr@segfault.org>2013-05-20 11:30:44 -0400
commit32cbd5737d20c3372a488e1ecc01f7564fc0149c (patch)
treea5718ca8fca40d240f1a38aac029649eb4f8ffef /bs4/builder/_html5lib.py
parent0f0ce683638ec47d87d52024a886995af114bdd7 (diff)
The .next_element attribute used during parsing was confusingly similar to the .next_element navigation attribute. Renamed the former to _most_recent_element.
Diffstat (limited to 'bs4/builder/_html5lib.py')
-rw-r--r--bs4/builder/_html5lib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/builder/_html5lib.py b/bs4/builder/_html5lib.py
index aa91435..e439ac8 100644
--- a/bs4/builder/_html5lib.py
+++ b/bs4/builder/_html5lib.py
@@ -131,7 +131,7 @@ class Element(html5lib.treebuilders._base.Node):
old_element = self.element.contents[-1]
new_element = self.soup.new_string(old_element + node.element)
old_element.replace_with(new_element)
- self.soup.previous_element = new_element
+ self.soup._most_recent_element = new_element
else:
self.soup.object_was_parsed(node.element, parent=self.element)