OLD | NEW |
(Empty) | |
| 1 HTMLInputElement type attribute test |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS input.type is "text" |
| 7 PASS input.getAttribute('type') is null |
| 8 PASS input.setAttribute('type', '-1'); input.type is "text" |
| 9 PASS input.setAttribute('type', 'foo'); input.getAttribute('type') is "foo" |
| 10 PASS input.type = 'x-unknown'; input.type is "text" |
| 11 PASS input.type = 'x-unknown'; input.getAttribute('type') is "x-unknown" |
| 12 PASS input.type = ''; input.type is "text" |
| 13 PASS input.type = ''; input.getAttribute('type') is "" |
| 14 PASS input.setAttribute('type', ''); input.type is "text" |
| 15 PASS input.setAttribute('type', ''); input.getAttribute('type') is "" |
| 16 PASS input.removeAttribute('type'); input.type is "text" |
| 17 PASS input.removeAttribute('type'); input.getAttribute('type') is null |
| 18 PASS input.setAttribute('type', 'rANGE'); input.type is "range" |
| 19 PASS input.setAttribute('type', 'Range'); input.getAttribute('type') is "Range" |
| 20 PASS input.setAttribute('type', 'rANGEr'); input.type is "text" |
| 21 PASS successfullyParsed is true |
| 22 |
| 23 TEST COMPLETE |
| 24 |
OLD | NEW |