diff --git a/src/source/patch.ts b/src/source/patch.ts index a37fc900..a3bd02a3 100644 --- a/src/source/patch.ts +++ b/src/source/patch.ts @@ -426,7 +426,9 @@ export function patchElementAndDocument(): void { this, markElement(node as Node), null, - isDocumentFragment(this) ? globalEnv.rawFragmentAppend : globalEnv.rawAppend, + isDocumentFragment(this) || isDocumentShadowRoot(this) + ? globalEnv.rawFragmentAppend + : globalEnv.rawAppend ) i++ }