Merge pull request #984 from aschmi/fix-namespaces-of-exported-svg

Fix namespaces of exported svg
This commit is contained in:
Jürg Lehni 2016-02-19 13:44:09 +01:00
commit 623ec73c7e

View file

@ -18,12 +18,14 @@
var SvgElement = new function() { var SvgElement = new function() {
// SVG related namespaces // SVG related namespaces
var svg = 'http://www.w3.org/2000/svg', var svg = 'http://www.w3.org/2000/svg',
xmlns = 'http://www.w3.org/2000/xmlns', xmlns = 'http://www.w3.org/2000/xmlns/',
xlink = 'http://www.w3.org/1999/xlink', xlink = 'http://www.w3.org/1999/xlink/',
// Mapping of attribute names to required namespaces: // Mapping of attribute names to required namespaces:
attributeNamespace = { attributeNamespace = {
href: xlink, href: xlink,
xlink: xmlns xlink: xmlns,
xmlns: xmlns,
'xmlns:xlink': xmlns
}; };
function create(tag, attributes, formatter) { function create(tag, attributes, formatter) {