function triggerErrorEvent(elt, eventName, detail) {
    triggerEvent(elt, eventName, mergeObjects({ error: eventName }, detail))
  }
@param {EventTarget|string} elt
@param {string} eventName
@param {any=} detail