diff options
Diffstat (limited to 'src/boxes.js')
-rw-r--r-- | src/boxes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boxes.js b/src/boxes.js index ff545bb..60e9b5d 100644 --- a/src/boxes.js +++ b/src/boxes.js @@ -73,9 +73,9 @@ SVG.BBox = SVG.invent({ if (!document.documentElement.contains){ // This is IE - it does not support contains() for top-level SVGs - var topParent = element.node; + var topParent = element.node while (topParent.parentNode){ - topParent = topParent.parentNode; + topParent = topParent.parentNode } if (topParent != document) throw new Exception('Element not in the dom') } else { |