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 1) getting options by index or by getElementById | 6 1) getting options by index or by getElementById |
7 PASS get_options[0] is document.getElementById("one") | 7 PASS get_options[0] is document.getElementById("one") |
8 PASS get_options[1] is document.getElementById("two") | 8 PASS get_options[1] is document.getElementById("two") |
9 2) setting a few elements to Option values | 9 2) setting a few elements to Option values |
10 PASS set_options.length is 3 | 10 PASS set_options.length is 3 |
11 3) trying to set an element to a non-Option value: undefined | 11 3) trying to set an element to a non-Option value: undefined |
12 PASS set_options.length is 3 | 12 PASS set_options.length is 3 |
13 4) trying to set an element to a non-Option value: null | 13 4) trying to set an element to a non-Option value: null |
14 PASS set_options.length is 3 | 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) | 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: Failed to set an index
ed property on 'HTMLOptionsCollection': The provided value is not of type 'HTMLO
ptionElement'.. | 16 PASS set_options[10] = my_form threw exception TypeError: Failed to set an index
ed property on 'HTMLOptionsCollection': The provided value is not of type 'HTMLO
ptionElement'.. |
17 PASS set_options.length is 3 | 17 PASS set_options.length is 3 |
18 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
19 | 19 |
20 TEST COMPLETE | 20 TEST COMPLETE |
21 | 21 |
OLD | NEW |