1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
4 <title>Crash XML Parser
</title>
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
6 <script language=
"JavaScript" type=
"text/JavaScript">
12 url
= 'resources/docLoaderFrame-data.html';
17 if (window
.XMLHttpRequest
) {
18 rq
= new XMLHttpRequest();
19 rq
.overrideMimeType('text/xml');
20 rq
.onreadystatechange
= processReqChange
;
21 rq
.open('GET', url
, true);
30 function processReqChange()
32 if (rq
.readyState
== 4) {
33 if (rq
.status
== 200) {
34 var xmlDoc
= rq
.responseXML
;
35 document
.getElementById("result").textContent
= "SUCCESS (did not crash)";
37 alert('There was a problem retrieving the XML data: ' + rq
.statusText
);
40 if (window
.testRunner
) {
41 testRunner
.notifyDone();
48 <body onLoad=
"javascript:loadXMLDoc();">
49 <p>Test for
<a href=
"rdar://problem/4298052">rdar://problem/
4298052</a>: Crash in KWQCheckIfReloading at http://www.inquisitorx.com/beta/
</p>
52 if (window
.testRunner
) {
53 testRunner
.dumpAsText();
54 testRunner
.waitUntilDone();