code: function copyNodeAttribute(attributeName, nodeSource, nodeDestination) {
    const attributeValue = nodeSource.getAttribute(attributeName);
    if (attributeValue) {
      nodeDestination.setAttribute(attributeName, attributeValue);
    }
  }
docs: Copies an attribute from a node to another.
  @param  {String} attributeName - The name of the attribute to clone.
  @param  {Object} nodeSource - The source node to copy the attribute from.
  @param  {Object} nodeDestination - The destination node to copy the attribute at.