diff options
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py index f6864f2..7b63b30 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -746,7 +746,7 @@ class Tag(PageElement): self.prefix = prefix if attrs is None: attrs = {} - elif builder.cdata_list_attributes: + elif attrs and builder.cdata_list_attributes: attrs = builder._replace_cdata_list_attribute_values( self.name, attrs) else: |