Beispiel #1
0
def setAttributes(node: dom.Node, attributes: ts.Mapping[str, ts.Any]):
    """Set attributes of a node."""
    for item in attributes.items():
        node.setAttribute(*item)