SearchInputType could end up with a mismatched renderer.
[WebKit-https.git] / LayoutTests / fast / forms / change-input-type-and-submit-form-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that submitting a form soon after changing the input type is ok.</title>
5 </head>
6 <body>
7 PASS if no crash or assert.
8 <form id=formToSubmit><input id=inputToChange results="1"></form>
9 <script>
10 if (window.testRunner)
11     testRunner.dumpAsText();
12
13 document.body.offsetHeight;
14 inputToChange.value = "1";
15 inputToChange.type = "search";
16 formToSubmit.submit();
17 </script>
18 <body>
19 </html>