function parseAttributes(element) {
  const nodeAttributes = element.attributes;
  const attributes = {};
  for (let i = 0; i < nodeAttributes.length; i++) {
    attributes[nodeAttributes[i].nodeName] = nodeAttributes[i].nodeValue;
  }
  return attributes;
}
/**
 * Converts element attributes into an object, where object key is attribute name
 * and object value is attribute value
 * @param {Element} element
 * @returns {Object}
 */
Converts element attributes into an object, where object key is attribute name
and object value is attribute value
@param {Element} element
@returns {Object}
Converts element attributes into an object where object key is attribute name and object value is attribute value @param { Element } element @returns { Object }
function parseAttributes(element) {
  const nodeAttributes = element.attributes;
  const attributes = {};
  for (let i = 0; i < nodeAttributes.length; i++) {
    attributes[nodeAttributes[i].nodeName] = nodeAttributes[i].nodeValue;
  }
  return attributes;
}
function parseAttributes ( element ) { const nodeAttributes = element . attributes ; const attributes = { } ; for ( let i = 0 ; i < nodeAttributes . length ; i ++ ) { attributes [ nodeAttributes [ i ] . nodeName ] = nodeAttributes [ i ] . nodeValue ; } return attributes ; }
Converts element attributes into an object, where object key is attribute name
 and object value is attribute value
 @param {Element} element
 @returns {Object}
Converts element attributes into an object where object key is attribute name and object value is attribute value @param { Element } element @returns { Object }