Skip to content

Commit 816409a

Browse files
authored
[fix] Use Node.parentNode instead Node.parentElement for legacy browser support (#7724)
1 parent 8513e29 commit 816409a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/internal/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function append_hydration(target: NodeEx, node: NodeEx) {
163163
if (is_hydrating) {
164164
init_hydrate(target);
165165

166-
if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentElement !== target))) {
166+
if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {
167167
target.actual_end_child = target.firstChild;
168168
}
169169

0 commit comments

Comments
 (0)