title: SvgAnimatedString missing method indexOf
body: <p>I am using <a href="http://d3js.org/" rel="noreferrer">d3.js</a> together with <a href="http://angularjs.org/" rel="noreferrer">angularjs</a>. When use hyperlink in svg object(which rendered through angular directive), I am getting this error.</p>
  
  <p><img src="https://i.stack.imgur.com/CwoMx.png" alt="enter image description here"></p>
  
  <p>As per the doc <a href="https://developer.mozilla.org/en-US/docs/DOM/SVGAnimatedString" rel="noreferrer">here</a>, svgAnimatedString doesn't have any specific method. How can I solve this. Can I inject a method or any other way. </p>
  
  <p>Part of the code below. Thanks you.</p>
  
  <pre><code>svg.selectAll("a.node")
                          .data(data)
                          .enter().append("a")
                          .attr("class", "node")
                          .attr("xlink:href", "test")
                          .append("rect")
  </code></pre>