Fix Issue 484: correct namespace handling for xml: attrs (patch by Jacques Distler)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1391 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
71e76c81b8
commit
92b50b4a75
|
@ -917,7 +917,8 @@ function BatchCommand(text) {
|
||||||
var canvas = this,
|
var canvas = this,
|
||||||
svgns = "http://www.w3.org/2000/svg",
|
svgns = "http://www.w3.org/2000/svg",
|
||||||
xlinkns = "http://www.w3.org/1999/xlink",
|
xlinkns = "http://www.w3.org/1999/xlink",
|
||||||
xmlns = "http://www.w3.org/2000/xmlns/", // see http://www.w3.org/TR/REC-xml-names/#xmlReserved
|
xmlns = "http://www.w3.org/XML/1998/namespace",
|
||||||
|
xmlnsns = "http://www.w3.org/2000/xmlns/", // see http://www.w3.org/TR/REC-xml-names/#xmlReserved
|
||||||
se_ns = "http://svg-edit.googlecode.com",
|
se_ns = "http://svg-edit.googlecode.com",
|
||||||
htmlns = "http://www.w3.org/1999/xhtml",
|
htmlns = "http://www.w3.org/1999/xhtml",
|
||||||
mathns = "http://www.w3.org/1998/Math/MathML",
|
mathns = "http://www.w3.org/1998/Math/MathML",
|
||||||
|
@ -941,7 +942,8 @@ function BatchCommand(text) {
|
||||||
|
|
||||||
var nsMap = {};
|
var nsMap = {};
|
||||||
nsMap[xlinkns] = 'xlink';
|
nsMap[xlinkns] = 'xlink';
|
||||||
nsMap[xmlns] = 'xmlns';
|
nsMap[xmlns] = 'xml';
|
||||||
|
nsMap[xmlnsns] = 'xmlns';
|
||||||
nsMap[se_ns] = 'se';
|
nsMap[se_ns] = 'se';
|
||||||
nsMap[htmlns] = 'xhtml';
|
nsMap[htmlns] = 'xhtml';
|
||||||
nsMap[mathns] = 'mathml';
|
nsMap[mathns] = 'mathml';
|
||||||
|
|
Loading…
Reference in New Issue