getElementAttributes(el) {
    const ignoreAttribs = ["class", "id", "name"];
    let attribs;
    try {
      attribs = Object.assign(
        {},
        ...Array.from(
          el.attributes,
          ({ name: name2, value: value2 }) => {
            if (!ignoreAttribs.includes(name2)) {
              return { [name2]: value2 };
            }
            return void 0;
          }
        )
      );
    } catch (e) {
    }
    return attribs;
  }
Attempt to get target attributs - can fail for certain target types, if so, returns empty object
@param {HTMLElement} el Target element
@returns {object} Array of key/value HTML attribute objects