This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Description
hi,
I have in the HTML:
<object id="myid" data="mySvg.svg" height="100%" ></object>
Then, to get the element:
let svgObject = document.getElementById( "myid" );
let svgDom = svgObject.contentDocument.querySelector("svg");
saveSvgAsPng(svgDom, "myname.png");
This works in Firefox but in Chrome I receive an error:
Error: an HTMLElement or SVGElement is required; got [object SVGSVGElement]
svgDom should be an Element...
I don't understand if it's my mistake, a browser problem or a problem with saveSvgAsPng. How can I solve the problem?
Thank you,
Riccardo