Getting ‘xlink:href’ attribute of the SVG element dynamically using JS in HTML DOM

The correct usage is getAttributeNS('http://www.w3.org/1999/xlink', 'href');

Leave a Comment