I load an SVG within an HTML file with the embed element. But now I want to change the color of an gradient within this SVG. In JavaScript there is the contentDocument which I can access to query for the gradient that I am looking for. It appears that the contentDocument is absent fro the embedElement, so how do I do that in Dart?
Here is an example how it can be done in JavaScript: Accessing SVG content in JS
The SVG is embedded like this:
<embed class="emb" src="images/svglogo.svg" width="100" height="100" type="image/svg+xml" />
Karsten