diff options
author | Leonard Richardson <leonardr@segfault.org> | 2019-07-07 15:59:09 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2019-07-07 15:59:09 -0400 |
commit | 0159c0a4135f267aed0586ba9d829d0a3da25da8 (patch) | |
tree | 78f20c40c74910109651bb7fb0a1b6dc1a29a621 /bs4/builder/_html5lib.py | |
parent | 0c3c1970dcb93bbe591707e43cfba9b24de45d05 (diff) |
It's now possible to override a TreeBuilder's cdata_list_attributes dictionary by passing in a replacement. None will disable the feature altogether. [bug=1832978]
Diffstat (limited to 'bs4/builder/_html5lib.py')
-rw-r--r-- | bs4/builder/_html5lib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/builder/_html5lib.py b/bs4/builder/_html5lib.py index 6fa8593..6892a93 100644 --- a/bs4/builder/_html5lib.py +++ b/bs4/builder/_html5lib.py @@ -199,7 +199,7 @@ class AttrList(object): def __setitem__(self, name, value): # If this attribute is a multi-valued attribute for this element, # turn its value into a list. - list_attr = HTML5TreeBuilder.cdata_list_attributes + list_attr = self.element.cdata_list_attributes if (name in list_attr['*'] or (self.element.name in list_attr and name in list_attr[self.element.name])): |