Recently was surfing about SVG's animate tags, and saw something like this:
<svg><animate href="#x" attributeName="href" values="https://www.google.com"/><a id="x"><circle r=100>
So, this will insert the <animate values>
into the <a>
tag as href
while rendering. So, when you click the circle animation, https://www.google.com is triggered.
The issue is, this href insertion doesn't work in Firefox. Works well in Chrome.
- How do I achieve this "values" insertion into
<a>
tag in Firefox? (The question is to achieve the dynamic insertion using SVG and not about the functionality) - Else, are there any similar runtime attribute insertion feature in SVG that is supported in Firefox? What are they? I need to specifically inject some value to
<a>'s href
attribute without directly specifying it.