1 <p>This test checks for <a href="rdar://problem/5303567"><rdar://problem/5303567></a> REGRESSION: XMLHttpRequest.responseXML returns NULL if response MIME type is not XML -- breaks Wikipedia widget</p>
4 <pre id="console"></pre>
9 document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
12 function logProperty(object, propertyName)
16 property = object[propertyName];
21 if (String(property).indexOf("\n") != -1)
22 property = property.split("\n")[0] + "...";
23 log(propertyName + ": " + property + " (" + typeof property + ")");
26 function sendRequest(url)
28 request = new XMLHttpRequest();
29 request.open("GET", url, false);
38 log("PASS: No exception.");
40 log("FAIL: Caught exception " + e + ".");
51 for (var i = 0; i < properties.length; i++) //>
52 logProperty(request, properties[i]);
55 if (window.layoutTestController)
56 layoutTestController.dumpAsText();
57 test("resources/plist.app");