[fix] Use `Node.parentNode` instead `Node.parentElement` for legacy browser support (#7724)

pull/7743/merge
Tal500 2 years ago committed by GitHub
parent 8513e299ef
commit 816409a27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save