summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-21 14:08:27 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-21 14:08:27 +0200
commite046447f00c954b234ffb2ac21bb326336364584 (patch)
tree5f3bf0d42422f88d8dde2f53c20aa77eb00eb7f6 /dist/svg.js
parentc9b762e3e36e0ec14a3d5934af8e6512192018c4 (diff)
downloadsvg.js-e046447f00c954b234ffb2ac21bb326336364584.tar.gz
svg.js-e046447f00c954b234ffb2ac21bb326336364584.zip
fixing node error in parent method when hitting document node (#720)
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/svg.js b/dist/svg.js
index d7e93d0..0a4069a 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Fri Jun 30 2017 23:15:13 GMT+0200 (Mitteleuropäische Sommerzeit)
+* BUILT: Fri Jul 21 2017 14:07:35 GMT+0200 (Mitteleuropäische Sommerzeit)
*/;
(function(root, factory) {
/* istanbul ignore next */
@@ -1197,6 +1197,7 @@ SVG.Element = SVG.invent({
// loop trough ancestors if type is given
while(parent && parent.node instanceof window.SVGElement){
if(typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent
+ if(parent.node.parentNode.nodeName == '#document') return null // #720
parent = SVG.adopt(parent.node.parentNode)
}
}
@@ -4013,7 +4014,7 @@ SVG.Doc = SVG.invent({
}
// Fix for possible sub-pixel offset. See:
// https://bugzilla.mozilla.org/show_bug.cgi?id=608812
- , spof: function(spof) {
+ , spof: function() {
var pos = this.node.getScreenCTM()
if (pos)