Reviewed by Darin.
[WebKit-https.git] / LayoutTests / fast / dom / cssTarget-crash.html
1 <html>
2 <body>
3 <div><a href="rdar://4504805&4577323&4643028&5659812">Should not crash.</a></div>
4 <form name="f" method="GET" action="#a"></form>
5 <div id="anchors"><a name="a"></a></div>
6 <script>
7 if (window.layoutTestController) {
8     layoutTestController.dumpAsText();
9     layoutTestController.waitUntilDone();
10 }
11
12 var stopped = false;
13 setTimeout("doIt()", 0);
14 setTimeout("stopped = true;", 100);
15 function doIt() {
16     if (stopped) {
17         if (window.layoutTestController)
18             layoutTestController.notifyDone();
19         return;
20     }
21     document.forms.f.submit();
22     var x=Math.random();
23     setTimeout("doIt("+x+")",10);
24     document.forms.f.action="#"+x;
25     document.getElementById("anchors").innerHTML+=
26         "<img width=100 height=100><a name=\""+x+"\"></a>";
27 }
28 </script>
29 </body>
30 </html>