| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test for HTMLSelectElement.remove() on an Options object</title> | 4 <title>Test for HTMLSelectElement.remove() on an Options object</title> |
| 5 <SCRIPT LANGUAGE=javascript> | 5 <SCRIPT LANGUAGE=javascript> |
| 6 function test() { | 6 function test() { |
| 7 var zipselect = document.getElementById("theSelect"); | 7 var zipselect = document.getElementById("theSelect"); |
| 8 var before = zipselect.options.length; | 8 var before = zipselect.options.length; |
| 9 zipselect.remove(zipselect.options[0]); | 9 zipselect.remove(zipselect.options[0]); |
| 10 var after = zipselect.options.length; | 10 var after = zipselect.options.length; |
| 11 if (before > after) | 11 if (before > after) |
| 12 document.getElementById("theDiv").innerHTML = "test passed" | 12 document.getElementById("theDiv").innerHTML = "test passed" |
| 13 if (window.testRunner) | 13 if (window.testRunner) |
| 14 testRunner.dumpAsText(); | 14 testRunner.dumpAsText(); |
| 15 } | 15 } |
| 16 </SCRIPT> | 16 </SCRIPT> |
| 17 </head> | 17 </head> |
| 18 | 18 |
| 19 <body onload="test();"> | 19 <body onload="test();"> |
| 20 <div id="theDiv">test failed</div> | 20 <div id="theDiv">test failed</div> |
| 21 <form> | 21 <form> |
| 22 <select id="theSelect"> | 22 <select id="theSelect"> |
| 23 <option value="ALL" selected >hello</option> | 23 <option value="ALL" selected >hello</option> |
| 24 </select> | 24 </select> |
| 25 </form> | 25 </form> |
| 26 </body> | 26 </body> |
| 27 | 27 |
| 28 </html> | 28 </html> |
| OLD | NEW |