diff --git a/addon-test-support/@percy/ember/index.js b/addon-test-support/@percy/ember/index.js index fe6a9fc7..5759d808 100644 --- a/addon-test-support/@percy/ember/index.js +++ b/addon-test-support/@percy/ember/index.js @@ -34,7 +34,7 @@ function scopeDOM(scope, dom) { if (!$scoped) return; // replace body content with scoped content - $body.innerHTML = $scoped.innerHTML; + $body.replaceChildren(...$scoped.children); // copy scoped attributes to the body element for (let i = 0; i < $scoped.attributes.length; i++) {