mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Merge pull request #984 from aschmi/fix-namespaces-of-exported-svg
Fix namespaces of exported svg
This commit is contained in:
commit
623ec73c7e
1 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue