The correct usage is getAttributeNS('http://www.w3.org/1999/xlink', 'href');
More Related Contents:
- Is it possible to use HTML’s .querySelector() to select by xlink attribute in an SVG?
- JavaScript accessing inner DOM of SVG
- How to check if an embedded SVG document is loaded in an html page?
- Add SVG element to existing SVG using DOM
- Access HTML attribute value in SASS
- is there an alternative to DOMAttrModified that will work in webkit
- inject a javascript function into an Iframe
- How to use “not” in XPath?
- Have any browsers implemented the DOM3 EventListenerList?
- window.onload seems to trigger before the DOM is loaded (JavaScript)
- Is Shadow DOM fast like Virtual DOM in React.js?
- Accessing a DOM object defined in an external SVG file
- SVG get text element width
- How do I manipulate the SVG DOM and create elements?
- Create a table in SVG
- jQuery find events handlers registered with an object
- Transparent arrow/triangle indented over an image
- querySelector, wildcard element match?
- Copy / Put text on the clipboard with FireFox, Safari and Chrome
- Replacing d3.transform in D3 v4
- Why does firebug add to ?
- What’s standard behavior when element is clicked? Will it submit the form?
- SVG rounded corner
- How to access DOM elements in electron?
- Trigger CSS transition on appended element
- link element onload
- SVG Image in JavaFX 2.2
- How to swap DOM child nodes in JavaScript?
- Is it bad practice to add properties to DOM nodes?
- Why is iframe.contentWindow == null?