Skip to content

Commit

Permalink
Fix incorrect union on predefined attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Oct 3, 2023
1 parent 71f5858 commit d48b928
Show file tree
Hide file tree
Showing 4 changed files with 778 additions and 749 deletions.
2 changes: 1 addition & 1 deletion pyhtml/__tag_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __call__(
appended and additional attributes unioned.
"""
new_children = self.children + util.flatten_list(list(children))
new_attributes = self.attributes | attributes
new_attributes = util.dict_union(self.attributes, attributes)

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

Expand Down
Loading

0 comments on commit d48b928

Please sign in to comment.