I want to access attributes of my svg:
<object id="mainIcon" type="image/svg+xml" data="icons/ribbon.svg"></object>
I read that it should be possible with documentElement
or getSVGDocument
, but both of them return null
. Further searching reveals that they don't work locally only by web server... All answers I seem to find seem to be solely concerned with web servers and offer no local solutions.