diff --git a/source/node/MergeSplit.ts b/source/node/MergeSplit.ts index ffd0e95..17645ec 100644 --- a/source/node/MergeSplit.ts +++ b/source/node/MergeSplit.ts @@ -60,7 +60,7 @@ const fixContainer = ( root: Element | DocumentFragment, ): Node => { let wrapper: HTMLElement | null = null; - [...container.childNodes].forEach((child) => { + Array.from(container.childNodes).forEach((child) => { const isBR = child.nodeName === 'BR'; if (!isBR && isInline(child)) { if (!wrapper) {