From 8e7c12b42cd91f21ff18fb3786f2782003743ed3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 22 Sep 2021 17:41:46 -0500 Subject: reverted package lock and edit nodeOrNew --- src/utils/adopter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/adopter.js b/src/utils/adopter.js index 300c133..487115c 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -42,7 +42,7 @@ export function makeInstance (element, isHTML = false) { } export function nodeOrNew (name, node) { - return (node && 'ownerDocument' in node && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) + return (node && node.ownerDocument && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) } // Adopt existing svg elements -- cgit v1.2.3