title: get xlink:href using javascript (in browser)
body: <p>I have an element (in html)</p>
  
  <pre><code> &lt;image xlink:url="https://abc" id="my_ele"&gt;
  </code></pre>
  
  <p>I do</p>
  
  <pre><code>ele = document.getElementById("my_ele")
  // Now want to get https://abc
  </code></pre>
  
  <p>This answer here <a href="https://stackoverflow.com/questions/12422668/getting-xlinkhref-attribute-of-the-svg-image-element-dynamically-using-js-i">Getting &#39;xlink:href&#39; attribute of the SVG &lt;image&gt; element dynamically using JS in HTML DOM</a></p>
  
  <p>says:</p>
  
  <pre><code>getAttributeNS('http://www.w3.org/1999/xlink', 'href');
  </code></pre>
  
  <p>But I'm not really sure what that translates to in my example.</p>
  
  <p>(btw, Google docs displays images like this, at least in Chrome. Don't know why they don't use a proper IMG tag.)</p>