| OLD | NEW |
| 1 <p>Test that SELECT is in correct state when handling a DOM modification event f
or option removing.</p> | 1 <p>Test that SELECT is in correct state when handling a DOM modification event f
or option removing.</p> |
| 2 <form> | 2 <form> |
| 3 <select ><option selected>1</option><option>2</option></select> | 3 <select ><option selected>1</option><option>2</option></select> |
| 4 <select multiple><option selected>1</option><option selected>2</option></select> | 4 <select multiple><option selected>1</option><option selected>2</option></select> |
| 5 <select multiple></select> | 5 <select multiple></select> |
| 6 </form> | 6 </form> |
| 7 <div id=res></div> | 7 <div id=res></div> |
| 8 <script> | 8 <script> |
| 9 if (window.testRunner) | 9 if (window.testRunner) |
| 10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 theSelect.remove(theSelect.options[0]); | 58 theSelect.remove(theSelect.options[0]); |
| 59 | 59 |
| 60 theSelect = document.forms[0].elements[2]; | 60 theSelect = document.forms[0].elements[2]; |
| 61 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true); | 61 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true); |
| 62 theSelect.options.add(new Option("2", "2", false, false), 0); | 62 theSelect.options.add(new Option("2", "2", false, false), 0); |
| 63 | 63 |
| 64 } catch (ex) { | 64 } catch (ex) { |
| 65 alert(ex); | 65 alert(ex); |
| 66 } | 66 } |
| 67 </script> | 67 </script> |
| OLD | NEW |