diff options
-rw-r--r-- | src/utils/adopter.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js index b5e326c..6d055ed 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -45,7 +45,8 @@ export function makeInstance (element, isHTML = false) { // return node instanceof globals.window.Node ? node : create(name) // } export function nodeOrNew (name, node) { - return (node && node.ownerDocument && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) + //console.log(node) + return (node && 'ownerDocument' in node && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) } // Adopt existing svg elements |