function setAttribute(node, attributeName, attributeValue) {
      node.setAttribute(attributeName, attributeValue);
    }
Set attribute for a node. The attribute value can be either string or
Trusted value (if application uses Trusted Types).