According to the documentation https://developer.mozilla.org/ru/docs/Web/API/Element/insertAdjacentHTML the insertAdjacentElement function can only add an e