Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / remove-form-node-with-radio-buttons-crash.html
blobc2d85ded2ca0ca0aa5bdb12fa98435f36e73c482
1 <html>
2 <script type="text/javascript">
4 function load1() {
5 var doc = document.getElementById("container");
6 doc.innerHTML = "<form name=\"gaga\"><input type=\"radio\" name=\"asdf\" id=\"chk\" value=\"A\"> Checkbox 1" +
7 "<input type=\"radio\" name=\"asdf\" value=\"B\"> Checkbox 2";
8 document.getElementById("chk").checked = true;
11 function load2() {
12 var doc = document.getElementById("container");
13 doc.innerHTML = "hello, world";
16 var ctr = 0;
18 function runTest() {
19 if (ctr % 2 == 0) {
20 load1();
21 } else {
22 load2();
24 ctr++;
25 setTimeout("runTest()", 10);
27 </script>
28 <body>
29 <div>This is a test for http://bugs.webkit.org/show_bug.cgi?id=12938 - to test this, press the "Run Test" button and wait for a couple of minutes - the browser should not crash.</div>
30 <input type="button" onclick="runTest()" value="Run Test">
31 <div id="container"/>
33 </body></html>