Skip to content

Commit

Permalink
[fix] Use Node.parentNode instead Node.parentElement for legacy b…
Browse files Browse the repository at this point in the history
…rowser support (#7724)
  • Loading branch information
Tal500 committed Aug 6, 2022
1 parent 8513e29 commit 816409a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/internal/dom.ts
Expand Up @@ -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;
}

Expand Down

0 comments on commit 816409a

Please sign in to comment.