OLD | NEW |
1 Tests the indexed setter and getter for HTMLOptionsCollection. | 1 Tests the indexed setter and getter for HTMLOptionsCollection. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS my_form.set_sel.options.length is 3 | 6 1) getting options by index or by getElementById |
7 PASS options[0] is document.getElementById('one') | 7 PASS get_options[0] is document.getElementById("one") |
8 PASS options[1] is document.getElementById('two') | 8 PASS get_options[1] is document.getElementById("two") |
| 9 2) setting a few elements to Option values |
| 10 PASS set_options.length is 3 |
| 11 3) trying to set an element to a non-Option value: undefined |
| 12 PASS set_options.length is 3 |
| 13 4) trying to set an element to a non-Option value: null |
| 14 PASS set_options.length is 3 |
| 15 5) trying to set an element to a non-Option value: form (object of incorrect typ
e) |
| 16 PASS set_options[10] = my_form threw exception TypeError: The provided value is
not of type 'HTMLOptionElement'.. |
| 17 PASS set_options.length is 3 |
9 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
10 | 19 |
11 TEST COMPLETE | 20 TEST COMPLETE |
12 | 21 |
OLD | NEW |