5 var logDiv
= document
.getElementById("log");
6 logDiv
.appendChild(document
.createTextNode(s
));
7 logDiv
.appendChild(document
.createElement("br"));
12 if (window
.testRunner
) {
13 testRunner
.dumpAsText();
15 var xhr
= new XMLHttpRequest();
16 xhr
.onreadystatechange = function() {
17 lastReadyStateObserved
= xhr
.readyState
;
18 if (xhr
.readyState
== 4) {
20 xhr
.open("GET", "recurse.html", false);
23 log("FAIL: An event listener should not throw an exception.");
27 xhr
.open("GET", "recurse.html", false);
32 <body onload=
"test()">
33 This tests that having infinite recursion in XMLHttpRequest event handler does not crash.