]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update
authordaiwei <daiwei521@126.com>
Thu, 9 Oct 2025 06:23:30 +0000 (14:23 +0800)
committerdaiwei <daiwei521@126.com>
Thu, 9 Oct 2025 06:23:30 +0000 (14:23 +0800)
packages/runtime-vapor/src/dom/hydration.ts

index 4925acb5326f6f601ef3b5808cddd3ed34117fe1..3f5eafbc2e4f363ccec9175fbf17cd7d171f0935 100644 (file)
@@ -124,8 +124,7 @@ function adoptTemplateImpl(node: Node, template: string): Node | null {
         isComment(node, ']') &&
         isComment(node.previousSibling!, '[')
       ) {
-        const parent = parentNode(node)!
-        node = parent.insertBefore(createTextNode(), node)
+        node.before((node = createTextNode()))
         break
       }
     }