From dc7e039ef2cbd3005c53652334f42d12f1f25691 Mon Sep 17 00:00:00 2001 From: Daniel Kern Date: Mon, 20 Sep 2021 13:21:24 -0500 Subject: nodeornew --- src/utils/adopter.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/utils/adopter.js b/src/utils/adopter.js index 048eb9c..824da57 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -44,6 +44,9 @@ export function makeInstance (element, isHTML = false) { export function nodeOrNew (name, node) { return node instanceof globals.window.Node ? node : create(name) } +// export function nodeOrNew (name, node) { +// return (node && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) +// } // Adopt existing svg elements export function adopt (node) { -- cgit v1.2.3