From 92b50b4a75840924ac3346a0f02d2ac3ccdd5124 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Mon, 15 Feb 2010 14:02:17 +0000 Subject: [PATCH] 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-75d572ba1ddd --- editor/svgcanvas.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index e19b1662..56cda2dd 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -917,7 +917,8 @@ function BatchCommand(text) { var canvas = this, svgns = "http://www.w3.org/2000/svg", 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", htmlns = "http://www.w3.org/1999/xhtml", mathns = "http://www.w3.org/1998/Math/MathML", @@ -941,7 +942,8 @@ function BatchCommand(text) { var nsMap = {}; nsMap[xlinkns] = 'xlink'; - nsMap[xmlns] = 'xmlns'; + nsMap[xmlns] = 'xml'; + nsMap[xmlnsns] = 'xmlns'; nsMap[se_ns] = 'se'; nsMap[htmlns] = 'xhtml'; nsMap[mathns] = 'mathml';