{"action":"created","issue":{"url":"https://api.github.com/repos/oetiker/issuetest2/issues/67","repository_url":"https://api.github.com/repos/oetiker/issuetest2","labels_url":"https://api.github.com/repos/oetiker/issuetest2/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/oetiker/issuetest2/issues/67/comments","events_url":"https://api.github.com/repos/oetiker/issuetest2/issues/67/events","html_url":"https://github.com/oetiker/issuetest2/issues/67","id":138224586,"number":67,"title":"Incompatible msxml object creation in qx.lang.XmlEmu.createXmlDom and qx.io.remote.XmlHttpTransport (bz#164)\n","user":{"login":"oetiker","id":429279,"avatar_url":"https://avatars.githubusercontent.com/u/429279?v=3","gravatar_id":"","url":"https://api.github.com/users/oetiker","html_url":"https://github.com/oetiker","followers_url":"https://api.github.com/users/oetiker/followers","following_url":"https://api.github.com/users/oetiker/following{/other_user}","gists_url":"https://api.github.com/users/oetiker/gists{/gist_id}","starred_url":"https://api.github.com/users/oetiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oetiker/subscriptions","organizations_url":"https://api.github.com/users/oetiker/orgs","repos_url":"https://api.github.com/users/oetiker/repos","events_url":"https://api.github.com/users/oetiker/events{/privacy}","received_events_url":"https://api.github.com/users/oetiker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oetiker/issuetest2/labels/COMP:core","name":"COMP:core","color":"ffe502"},{"url":"https://api.github.com/repos/oetiker/issuetest2/labels/PROD:framework","name":"PROD:framework","color":"ffdb66"},{"url":"https://api.github.com/repos/oetiker/issuetest2/labels/VERS:0.6","name":"VERS:0.6","color":"98ff52"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-03T16:22:02Z","updated_at":"2016-03-03T16:22:06Z","closed_at":null,"body":"In qx.io.remote.XmlHttpTransport the creation of the xmlhttp object is done by trying to get an instance from the msxml2 activex library. This is done by trying to get an instance of activex object names which are given by the following array until a new object is successfully created:\n\n    var vServers = \n      [ \n        &quot;MSXML2.DOMDocument.6.0&quot;, \n        &quot;MSXML2.DOMDocument.5.0&quot;, \n        &quot;MSXML2.DOMDocument.4.0&quot;, \n        &quot;MSXML2.DOMDocument.3.0&quot;, \n        &quot;MSXML2.DOMDocument.2.0&quot;, \n        &quot;MSXML2.DOMDocument&quot;, \n        &quot;Microsoft.DOMDocument&quot; \n      ];\n\nIf such an xmlhttp connection retreives successfully a msxml2 object this object is not compatible to objects created with qx.lang.XmlEmu.createXmlDom. \nThis is due to the simple creation of:\n\n      new ActiveXObject(&quot;Microsoft.XMLDOM&quot;);\n\nSo copying and moving nodes and childs between the objects from each other fail with an error in IE.\n\nThe solution is to use a similar array with activex object names as in both implementations.\n\nA patch against rev. 4267 is attached\n\n<table>\n<tbody>\n<tr><td>Date</td><td>2006-09-20 08:41:00 +0200</td></tr>\n<tr><td>Reporter</td><td>Dietrich Streifert (dietrich.streifert)</td></tr>\n</tbody>\n</table>\n"},"comment":{"url":"https://api.github.com/repos/oetiker/issuetest2/issues/comments/191835838","html_url":"https://github.com/oetiker/issuetest2/issues/67#issuecomment-191835838","issue_url":"https://api.github.com/repos/oetiker/issuetest2/issues/67","id":191835838,"user":{"login":"oetiker","id":429279,"avatar_url":"https://avatars.githubusercontent.com/u/429279?v=3","gravatar_id":"","url":"https://api.github.com/users/oetiker","html_url":"https://github.com/oetiker","followers_url":"https://api.github.com/users/oetiker/followers","following_url":"https://api.github.com/users/oetiker/following{/other_user}","gists_url":"https://api.github.com/users/oetiker/gists{/gist_id}","starred_url":"https://api.github.com/users/oetiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oetiker/subscriptions","organizations_url":"https://api.github.com/users/oetiker/orgs","repos_url":"https://api.github.com/users/oetiker/repos","events_url":"https://api.github.com/users/oetiker/events{/privacy}","received_events_url":"https://api.github.com/users/oetiker/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T16:22:06Z","updated_at":"2016-03-03T16:22:06Z","body":"Patch against rev 4267\n\n```diff\nIndex: qooxdoo/frontend/framework/source/class/qx/lang/Xml.js\n===================================================================\n--- qooxdoo/frontend/framework/source/class/qx/lang/Xml.js\t(revision 4267)\n+++ qooxdoo/frontend/framework/source/class/qx/lang/Xml.js\t(working copy)\n@@ -23,19 +23,45 @@\n \n qx.OO.defineClass(\"qx.lang.Xml\");\n \n-// Create an XML dom node\n-qx.lang.Xml.createXmlDom = function()\n+// Create a XML dom node\n+qx.lang.XmlEmu.createXmlDom = function()\n {\n-  // Mozilla style\n+  // The Mozilla style\n   if (document.implementation && document.implementation.createDocument) {\n     return document.implementation.createDocument(\"\", \"\", null);\n   }\n \n-  // Microsoft style\n+  // The Microsoft style\n   if (window.ActiveXObject) {\n-    return new ActiveXObject(\"Microsoft.XMLDOM\");\n+    var vServers = \n+      [ \n+        \"MSXML2.DOMDocument.6.0\", \n+        \"MSXML2.DOMDocument.5.0\", \n+        \"MSXML2.DOMDocument.4.0\", \n+        \"MSXML2.DOMDocument.3.0\", \n+        \"MSXML2.DOMDocument.2.0\", \n+        \"MSXML2.DOMDocument\", \n+        \"Microsoft.DOMDocument\" \n+      ];\n+    var vObject;\n+    var vServer;\n+\n+    for (var i=0, l=vServers.length; i<l; i++)\n+    {\n+      vServer = vServers[i];\n+\n+      try\n+      {\n+        vObject = new ActiveXObject(vServer);\n+        break;\n+      }\n+      catch(ex)\n+      {\n+        vObject = null;\n+      }\n+    }\n+    return vObject;\n   }\n \n   throw new Error(\"This browser does not support xml dom creation.\");\n };\n-\n\n```\n\n<table>\n<tbody>\n<tr><td>Date</td><td>2006-09-20 08:50:00 +0200</td></tr>\n<tr><td>Who</td><td>dietrich.streifert</td></tr>\n</tbody>\n</table>\n"}}