summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/element.py')
-rw-r--r--bs4/element.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bs4/element.py b/bs4/element.py
index d58da92..c081eba 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -915,6 +915,7 @@ class Tag(PageElement):
while i is not None:
next = i.next_element
i.__dict__.clear()
+ i.contents = []
i = next
def clear(self, decompose=False):