OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 function Crash() { | 4 function Crash() { |
5 var x = new Option('t','v'); | 5 var x = new Option('t','v'); |
6 document.getElementById('result').innerHTML = "Test Passed. <BR/> Index for
option element with no corresponding select is: " + x.index; | 6 document.getElementById('result').innerHTML = "Test Passed. <BR/> Index for
option element with no corresponding select is: " + x.index; |
7 } | 7 } |
8 </script> | 8 </script> |
9 </head> | 9 </head> |
10 <body onload="Crash()"> | 10 <body onload="Crash()"> |
11 This test makes sure we don't crash when trying to get the index of an option el
ement that has no corresponding select element. | 11 This test makes sure we don't crash when trying to get the index of an option el
ement that has no corresponding select element. |
12 <div id="result">Test Failed</div> | 12 <div id="result">Test Failed</div> |
13 </body> | 13 </body> |
14 </html> | 14 </html> |
OLD | NEW |