From acb1e408d0f6ed811631b9929dbf1a6a89420734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 19 Feb 2016 23:30:54 +0100 Subject: [PATCH] SVG Import: Fix namespacing issues introduced by #984 --- src/svg/SvgElement.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/svg/SvgElement.js b/src/svg/SvgElement.js index 03e266e8..a5d665cd 100644 --- a/src/svg/SvgElement.js +++ b/src/svg/SvgElement.js @@ -18,8 +18,8 @@ var SvgElement = new function() { // SVG related namespaces var svg = 'http://www.w3.org/2000/svg', - xmlns = 'http://www.w3.org/2000/xmlns/', - xlink = 'http://www.w3.org/1999/xlink/', + xmlns = 'http://www.w3.org/2000/xmlns', + xlink = 'http://www.w3.org/1999/xlink', // Mapping of attribute names to required namespaces: attributeNamespace = { href: xlink, @@ -47,7 +47,7 @@ var SvgElement = new function() { if (typeof value === 'number' && formatter) value = formatter.number(value); if (namespace) { - node.setAttributeNS(namespace, name, value); + node.setAttributeNS(namespace + '/', name, value); } else { node.setAttribute(name, value); }