summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-01-25 16:18:13 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-01-25 16:18:13 -0500
commit12ad184120ad7ddebe63462daf3c6f1a64fb4338 (patch)
treee7899eb5b476ba408aa6dba6e7480758cc143b10 /bs4/element.py
parent37c36a2dc4ecc00fe0f066789f2a7fd5caf069fe (diff)
Tag.interesting_string_types is now propagated when a tag is
copied. [bug=1990400]
Diffstat (limited to 'bs4/element.py')
-rw-r--r--bs4/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py
index 98e978f..7f25f27 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -1309,7 +1309,8 @@ class Tag(PageElement):
sourceline=self.sourceline, sourcepos=self.sourcepos,
can_be_empty_element=self.can_be_empty_element,
cdata_list_attributes=self.cdata_list_attributes,
- preserve_whitespace_tags=self.preserve_whitespace_tags
+ preserve_whitespace_tags=self.preserve_whitespace_tags,
+ interesting_string_types=self.interesting_string_types
)
for attr in ('can_be_empty_element', 'hidden'):
setattr(clone, attr, getattr(self, attr))