[KSS-checkins] r35994 - kukit/kukit.js/trunk/kukit

reebalazs at codespeak.net reebalazs at codespeak.net
Wed Dec 27 13:51:42 CET 2006


Author: reebalazs
Date: Wed Dec 27 13:51:40 2006
New Revision: 35994

Modified:
   kukit/kukit.js/trunk/kukit/kukit.js
Log:
the error attachement code needs to use a full xml, consequently we don't wrap it from js

Modified: kukit/kukit.js/trunk/kukit/kukit.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/kukit.js	(original)
+++ kukit/kukit.js/trunk/kukit/kukit.js	Wed Dec 27 13:51:40 2006
@@ -339,9 +339,8 @@
         // Read the header and load it as xml, if defined.
         var payload = domDoc.getResponseHeader('X-KSSCOMMANDS');
         if (payload) {
-            var root_txt = '<?xml version="1.0"?><root xmlns:kukit="http://www.kukit.org/commands/1.0">' + payload + '</root>';
             try {
-                dom = (new DOMParser()).parseFromString(root_txt, "text/xml");
+                dom = (new DOMParser()).parseFromString(payload, "text/xml");
             } catch(e) {
                 // XXX this does not work on Opera for sure
                 //throw new kukit.ResponseParsingError('Exception: "' + e + '"');


More information about the Kukit-checkins mailing list