Skip to content

Commit d48b928

Browse files
Fix incorrect union on predefined attributes
1 parent 71f5858 commit d48b928

File tree

4 files changed

+778
-749
lines changed

4 files changed

+778
-749
lines changed

pyhtml/__tag_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __call__(
3535
appended and additional attributes unioned.
3636
"""
3737
new_children = self.children + util.flatten_list(list(children))
38-
new_attributes = self.attributes | attributes
38+
new_attributes = util.dict_union(self.attributes, attributes)
3939

4040
return self.__class__(*new_children, **new_attributes)
4141

0 commit comments

Comments
 (0)