Skip to content
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pyxform/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def node(*args, **kwargs) -> DetachableElement:
kwargs -- attributes
returns a xml.dom.minidom.Element
"""
blocked_attributes = {"tag"}
# blocked_attributes = {"tag"}
tag = args[0] if len(args) > 0 else kwargs["tag"]
args = args[1:]
result = DetachableElement(tag)
Expand All @@ -116,7 +116,9 @@ def node(*args, **kwargs) -> DetachableElement:

# Convert the kwargs xml attribute dictionary to a xml.dom.minidom.Element.
for k, v in kwargs.items():
if k in blocked_attributes:
# if k in blocked_attributes:
# continue
if k == "tag" and v == tag:
continue
if k == "toParseString":
if v is True and len(unicode_args) == 1:
Expand Down
Loading