diff --git a/js/utils/head_setter.js b/js/utils/head_setter.js index 54e037cd..16e79575 100644 --- a/js/utils/head_setter.js +++ b/js/utils/head_setter.js @@ -8,6 +8,7 @@ function constructHeadElement(elementType, elementId, elementAttributes) { let head = (document.head || document.getElementsByTagName('head')[0]); let element = document.createElement(elementType); let oldElement = document.getElementById(elementId); + element.setAttribute('id', elementId); for (let k in elementAttributes){ try { element.setAttribute(k, elementAttributes[k]);