title: Save <svg> HTML5 to PNG or image
body: <p>I have got charts generated with D3 Javascript library and i need to save these to file PNG or SVG.</p>
  
  <p>Is there some library that makes the job?</p>
  
  <p>I found this <a href="https://github.com/sampumon/SVG.toDataURL">https://github.com/sampumon/SVG.toDataURL</a> but is not working on my html5,
  in firefox console i got this error:</p>
  
  <p>NS_ERROR_NOT_AVAILABLE: Component is not available
  [Interrompi per questo errore]  </p>
  
  <p>ctx.drawImage(img, 0, 0);</p>