I have an object html tag and I am passing it an external SVG url through the data=""
attribute.
Does anyone know how to access the SVG inside the <object>
? I would like to change the styles inside the svg but I can't figure a way to access it, I have researched quite a lot but I wasn't able to find anything that is up to date. If you are aware of a way how to do this with vanilla JS or with a library then I would really appreciate it if you could help!
Also please keep in mind that as I said before, The svg is external and I do not have access to it so I can't add an Id or anything else.
<object data="https://assets.codepen.io/3/kiwi.svg" />