summaryrefslogtreecommitdiff
path: root/bs4/builder/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2022-04-10 13:42:02 -0400
committerLeonard Richardson <leonardr@segfault.org>2022-04-10 13:42:02 -0400
commit92b50fc6ae57038a09e9cace20604613b1b345e8 (patch)
treee695bca9b85d605272dee2128ffd4fe69af4b0d5 /bs4/builder/__init__.py
parentbae2e2ca3565a75fcff1d2bc911f0a2e022761b4 (diff)
Fixed another crash when overriding multi_valued_attributes and using the
html5lib parser. [bug=1948488]
Diffstat (limited to 'bs4/builder/__init__.py')
-rw-r--r--bs4/builder/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/builder/__init__.py b/bs4/builder/__init__.py
index 9f789f3..2e39745 100644
--- a/bs4/builder/__init__.py
+++ b/bs4/builder/__init__.py
@@ -122,7 +122,7 @@ class TreeBuilder(object):
# A value for these tag/attribute combinations is a space- or
# comma-separated list of CDATA, rather than a single CDATA.
- DEFAULT_CDATA_LIST_ATTRIBUTES = {}
+ DEFAULT_CDATA_LIST_ATTRIBUTES = defaultdict(list)
# Whitespace should be preserved inside these tags.
DEFAULT_PRESERVE_WHITESPACE_TAGS = set()