Skip to content

Commit

Permalink
Merge pull request paperjs#984 from aschmi/fix-namespaces-of-exported…
Browse files Browse the repository at this point in the history
…-svg

Fix namespaces of exported svg
  • Loading branch information
lehni committed Feb 19, 2016
2 parents b5c837b + 49104c5 commit 623ec73
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/svg/SvgElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
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,
xlink: xmlns
xlink: xmlns,
xmlns: xmlns,
'xmlns:xlink': xmlns
};

function create(tag, attributes, formatter) {
Expand Down

0 comments on commit 623ec73

Please sign in to comment.