function domCreateAttribute(doc, name) {
  return doc.createAttribute(name);
}
Creates a new attribute in the given document.

@param {Document} doc  Target document.
@param {String} name  Name of new attribute.
@return {Attr}  Newly constructed attribute.