aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-08 07:32:38 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-08 07:32:38 +1000
commitd927f2d225d74fd3b3f41b298a19f6ba075702cf (patch)
treef53da1457a2a2df4685367a4184bf244fbd83378 /src/utils
parent099bf6efad9c9971d805c8496a63314d91a71692 (diff)
downloadsvg.js-d927f2d225d74fd3b3f41b298a19f6ba075702cf.tar.gz
svg.js-d927f2d225d74fd3b3f41b298a19f6ba075702cf.zip
added Fragment, completed Dom Tests, fixed `matches()` for document fragments
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/adopter.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js
index b016837..217aafb 100644
--- a/src/utils/adopter.js
+++ b/src/utils/adopter.js
@@ -53,6 +53,10 @@ export function adopt (node) {
// make sure a node isn't already adopted
if (node.instance instanceof Base) return node.instance
+ if (node.nodeName === '#document-fragment') {
+ return new elements.Fragment(node)
+ }
+
// initialize variables
var className = capitalize(node.nodeName || 'Dom')