summaryrefslogtreecommitdiff
path: root/bs4/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r--bs4/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py
index 01fca6d..5e1bebe 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -469,6 +469,7 @@ class BeautifulSoup(Tag):
self.open_tag_counter = Counter()
self.preserve_whitespace_tag_stack = []
self.string_container_stack = []
+ self._most_recent_element = None
self.pushTag(self)
def new_tag(self, name, namespace=None, nsprefix=None, attrs={},