From 25e68be0b066fbb9a34a2134c0ca3829589aed6b Mon Sep 17 00:00:00 2001 From: Mario34 Date: Thu, 16 Jul 2026 18:28:46 +0800 Subject: [PATCH] fix: shadowRoot node append exception --- src/source/patch.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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++ }