diff options
Diffstat (limited to 'src/doc.js')
-rw-r--r-- | src/doc.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |