From a4757b37dea61fc04a63ee51dc6cb7cbc65e9be0 Mon Sep 17 00:00:00 2001 From: aschmi Date: Thu, 18 Feb 2016 16:07:56 +0100 Subject: [PATCH 1/2] Extend mapping of attribute names to required namespaces --- src/svg/SvgElement.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/svg/SvgElement.js b/src/svg/SvgElement.js index 85ba7e43..0f8974fb 100644 --- a/src/svg/SvgElement.js +++ b/src/svg/SvgElement.js @@ -23,7 +23,9 @@ var SvgElement = new function() { // Mapping of attribute names to required namespaces: attributeNamespace = { href: xlink, - xlink: xmlns + xlink: xmlns, + xmlns: xmlns, + 'xmlns:xlink': xmlns }; function create(tag, attributes, formatter) { From 49104c5cf0309d630d5ebce2453b61568f212a32 Mon Sep 17 00:00:00 2001 From: aschmi Date: Thu, 18 Feb 2016 16:08:12 +0100 Subject: [PATCH 2/2] Add trailing slashes to svg related namespaces (xmlns, xlink) --- src/svg/SvgElement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/svg/SvgElement.js b/src/svg/SvgElement.js index 0f8974fb..03e266e8 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,