From 7019d4cdf59085ce8f954ec19cd76a5750b03901 Mon Sep 17 00:00:00 2001 From: Justineo Date: Mon, 27 Aug 2018 16:22:39 +0800 Subject: [PATCH] fix: replace hardcoded .parentNode with abstract ops, fix #8713 --- 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 fb28d8cd341..676499dc69e 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 {