use `Node.parentNode` instead `Node.parentElement` in `dom.ts`.

This is for a simple legacy browsers compatibility (specifically, IE11).
pull/7724/head
Tal Hadad 4 years ago
parent 5a725713f7
commit b8a1d7a8b6

@ -163,7 +163,8 @@ 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))) {
// Note: It is important to use `Node.parentNode` instead `Node.parentElement` for a simple legacy browsers compatibility.
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