aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.js')
-rw-r--r--src/doc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc.js b/src/doc.js
index 536630a..1be4607 100644
--- a/src/doc.js
+++ b/src/doc.js
@@ -53,7 +53,7 @@ SVG.Doc = SVG.invent({
}
// custom parent method
, parent: function() {
- if(!this.node.parentNode || this.node.parentNode.nodeName == '#document') return null
+ if(!this.node.parentNode || this.node.parentNode.nodeName == '#document' || this.node.parentNode.nodeName == '#document-fragment') return null
return this.node.parentNode
}
// Fix for possible sub-pixel offset. See: