From 1e1ce0cac7d6c22c980021cbd3cb207a47e85dfb Mon Sep 17 00:00:00 2001 From: GU Yiling Date: Mon, 10 Sep 2018 05:28:20 +0800 Subject: [PATCH] fix: replace hardcoded .parentNode with abstract ops, fix #8713 (#8714) --- src/core/vdom/patch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/vdom/patch.js b/src/core/vdom/patch.js index fb28d8cd..676499dc 100644 --- a/src/core/vdom/patch.js +++ b/src/core/vdom/patch.js @@ -272,7 +272,7 @@ export function createPatchFunction (backend) { function insert (parent, elm, ref) { if (isDef(parent)) { if (isDef(ref)) { - if (ref.parentNode === parent) { + if (nodeOps.parentNode(ref) === parent) { nodeOps.insertBefore(parent, elm, ref) } } else {