- document.body.replaceChildren(header, wrapper, footer) }
- else document.body.replaceChildren(header, document.importNode(article, true), footer) })
+ document.body.replaceChildren(header, wrapper, footer, document.body.querySelector("footer")) }
+ else document.body.replaceChildren(header, document.importNode(article, true), footer, document.body.querySelector("footer")) })