diff --git a/cjs/interface/range.js b/cjs/interface/range.js index 1e041fc..3c3e389 100644 --- a/cjs/interface/range.js +++ b/cjs/interface/range.js @@ -113,8 +113,8 @@ class Range { for (const child of childNodes) { Object.setPrototypeOf(child, SVGElement.prototype); child.ownerSVGElement = document; + content.appendChild(child); } - content.append(...childNodes); } else this.selectNode(content); diff --git a/esm/interface/range.js b/esm/interface/range.js index 7abfc00..45defd5 100644 --- a/esm/interface/range.js +++ b/esm/interface/range.js @@ -112,8 +112,8 @@ export class Range { for (const child of childNodes) { Object.setPrototypeOf(child, SVGElement.prototype); child.ownerSVGElement = document; + content.appendChild(child); } - content.append(...childNodes); } else this.selectNode(content); diff --git a/worker.js b/worker.js index 8aa638f..e7ee3bd 100644 --- a/worker.js +++ b/worker.js @@ -11514,8 +11514,8 @@ class Range { for (const child of childNodes) { Object.setPrototypeOf(child, SVGElement$1.prototype); child.ownerSVGElement = document; + content.appendChild(child); } - content.append(...childNodes); } else this.selectNode(content);