Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select-set-inner.html
blobf30658be108e594879eb9424963b3e347a6f2d35
1 <html>
3 <head>
5 <script>
7 function test()
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 document.getElementById('select').length; // cause the <select> element to build a list of options
13 document.getElementById('group').innerHTML = ""; // remove an option using innerHTML
14 document.getElementById('select').length; // cause the <select> element to use the list of options
15 document.getElementById('select').innerHTML = ""; // remove the other option using innerHTML
16 document.getElementById('select').length; // cause the <select> element to use the list of options
18 document.getElementById('result').innerHTML = "PASSED";
21 </script>
23 </head>
25 </html>
27 <body onload="test()">
29 <p>This tests a case where removing an option element from a select by using innerHTML would cause a crash.</p>
31 <p id="result">TEST NOT RUN</p>
33 <select id="select">
34 <option>here is one</option>
35 <optgroup id="group" label="group"><option>here is another</option></optgroup>
36 </select>
38 </body>
40 </html>