mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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() {
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue