From 816409a27b07090fd6796f585121112e5bd71c88 Mon Sep 17 00:00:00 2001 From: Tal500 Date: Sat, 6 Aug 2022 20:54:23 +0300 Subject: [PATCH] [fix] Use `Node.parentNode` instead `Node.parentElement` for legacy browser support (#7724) --- src/runtime/internal/dom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/dom.ts b/src/runtime/internal/dom.ts index 072506629c..8a7d3af6da 100644 --- a/src/runtime/internal/dom.ts +++ b/src/runtime/internal/dom.ts @@ -163,7 +163,7 @@ export function append_hydration(target: NodeEx, node: NodeEx) { if (is_hydrating) { init_hydrate(target); - if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentElement !== target))) { + if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) { target.actual_end_child = target.firstChild; }