2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / cssTarget-crash.html
blobdb5669c8a630d955e4754c68b66c6d265602e98a
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();
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;
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>";
28 </script>
29 </body>
30 </html>