Closed PjotrC closed 9 years ago
I will investigate the problems with Firefox and Opera.
As far as I know, the script does not work in IE. It throws a security exception when generating the data URI for a canvas. There are unconfirmed reports that it does work, but I've not been able to reproduce.
It looks like Firefox doesn't fully respect unitless font sizes in style tags.
It doesn't appear that Opera 12 fully supports SVG.
On both your page and the test page, Opera 12 throws a DOM exception (SYNTAX_ERR
) when executing the following line in jQuery v1.11.1:
div.querySelectorAll("*,:x");
All appears to work in the new version of Opera, which is built atop Chromium.
Thank you for pointing out the issue with Firefox.
Btw: What is the difference between "bjpop/saveSvgAsPng" and "exupero/saveSvgAsPng"?
It looks like the bjpop/saveSvgAsPng is an outdated clone of this repo (most recent commit is late June).
Hi,
This script saved my day, however, do you think the IE issue is solvable?
In my testing, IE considers the critical step canvas.toDataURL()
to be a security error. It's possible that behavior is configurable, or that a browser extension could disable it, but knowing for certain would take someone more versed in IE than me.
Hi exupero,
on Chrome your script is doing well, but I observed some issuses with other browsers:
On Firefox 30.0 small fonts turn into normal sized fonts. On my test page you can see this at the elevation label. Please check: https://dl.dropboxusercontent.com/u/17823304/Climograph/Climograph_test.html
On Opera 12.17 and Internet Explorer 11 the lownload is not working at all.
Hope to not report known issues.