I am trying to export the SVG created in the browser (diagram d3.js) as PNG using methods based on https://github.com/exupero/saveSvgAsPng and http://techslides.com/save-svg-as- an-image . The SVG is converted to a data URI and displayed as an image in a canvas that is converted to a PNG data URI. This URI is loaded as a file using a binding tag. I was able to confirm this to work in current versions of FF, Chrome, and Safari; however, starting the download on the anchor tag causes Edge to either hang (only with a doctype warning in the console), or completely crash. Is there anyway to get this to work in Edge or to load an anchor with URI data that is not yet fully supported?
Code generated from the following sources:
javascript html microsoft-edge svg
weeser May 17 '16 at 15:16 2016-05-17 15:16
source share