diff options
author | Norbert Bartos <bartos.norbert@danubiusinfo.hu> | 2018-11-13 14:17:09 +0100 |
---|---|---|
committer | Norbert Bartos <bartos.norbert@danubiusinfo.hu> | 2018-11-13 14:17:09 +0100 |
commit | 5fedccf46e545940213fcbadd870e461d61a29af (patch) | |
tree | e32a42435ed7d74c10c385f81b39dc2a8ec83347 /src/doc.js | |
parent | 4f2fd650261d9f34e872e7d20295658124cc5df0 (diff) | |
download | svg.js-5fedccf46e545940213fcbadd870e461d61a29af.tar.gz svg.js-5fedccf46e545940213fcbadd870e461d61a29af.zip |
Add node document-fragment type check
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: |