diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-05-26 09:07:56 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-05-26 09:07:56 +0200 |
commit | d20e1904af902baa6872228ed92845fc98c4e2a3 (patch) | |
tree | b343d438c82048776d1df118fac1c87f79233c22 | |
parent | 430f6c2931b75a5ebb2ea651b26730805cd3a7e4 (diff) | |
parent | 5d63a0eb2ae6881c44d41b8a7d06f30d5a4ae6a3 (diff) | |
download | svg.js-d20e1904af902baa6872228ed92845fc98c4e2a3.tar.gz svg.js-d20e1904af902baa6872228ed92845fc98c4e2a3.zip |
Merge pull request #490 from snydesc/master
Changed document.contains to document.documentElement.contains
-rw-r--r-- | src/boxes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boxes.js b/src/boxes.js index 2b14abd..1e9d0eb 100644 --- a/src/boxes.js +++ b/src/boxes.js @@ -9,7 +9,7 @@ SVG.BBox = SVG.invent({ try { // the element is NOT in the dom, throw error - if(!document.contains(element.node)) throw new Exception('Element not in the dom') + if(!document.documentElement.contains(element.node)) throw new Exception('Element not in the dom') // find native bbox box = element.node.getBBox() |