aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorDaniel Kern <daniel@face.local>2021-09-20 13:21:24 -0500
committerDaniel Kern <daniel@face.local>2021-09-20 13:21:24 -0500
commitdc7e039ef2cbd3005c53652334f42d12f1f25691 (patch)
treecc44b961c3b27d0e5f5a2fc9749d3789d33e44fe /src/utils
parentfce00da59191866317fbb61c51d7afca2d768906 (diff)
downloadsvg.js-dc7e039ef2cbd3005c53652334f42d12f1f25691.tar.gz
svg.js-dc7e039ef2cbd3005c53652334f42d12f1f25691.zip
nodeornew
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/adopter.js3
1 files changed, 3 insertions, 0 deletions
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) {