We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4066f26 commit 38e007eCopy full SHA for 38e007e
template.js
@@ -7,7 +7,7 @@ for (const template of document.getElementsByTagName('template')) {
7
.then(content => {
8
const html = document.createElement('html');
9
html.innerHTML = content;
10
- document.head.innerHTML += html.getElementsByTagName('head')[0].innerHTML;
+ document.head.lastChild.insertAdjacentHTML('afterend', html.getElementsByTagName('head')[0].innerHTML);
11
template.insertAdjacentHTML('afterend', html.getElementsByTagName('body')[0].innerHTML);
12
});
13
}
0 commit comments