| OLD | NEW |
| 1 Test setting the protocol attribute of the URL in HTMLAnchorElement . | 1 Test setting the protocol attribute of the URL in HTMLAnchorElement . |
| 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 Basic test | 6 Basic test |
| 7 PASS a.href is 'http-foo://www.mydomain.com/path/' | 7 PASS a.href is 'http-foo://www.mydomain.com/path/' |
| 8 Set a protocol that contains ':' | 8 Set a protocol that contains ':' |
| 9 PASS a.href is 'http://www.mydomain.com/path/' | 9 PASS a.href is 'http://www.mydomain.com/path/' |
| 10 Set a protocol that contains invalid characters | 10 Set a protocol that contains invalid characters |
| 11 PASS a.href is 'https://www.mydomain.com/path/' | 11 PASS a.href is 'https://www.mydomain.com/path/' |
| 12 Set a protocol to a URL with invalid host name | 12 Set a protocol to a URL with invalid host name |
| 13 PASS a.href is 'foo:^^' | 13 FAIL a.href should be foo:^^. Was foo:///H:/%5E%5E. |
| 14 Set a protocol that starts with ':' | 14 Set a protocol that starts with ':' |
| 15 PASS a.href is 'https://www.mydomain.com/path/' | 15 PASS a.href is 'https://www.mydomain.com/path/' |
| 16 Set protocol to null | 16 Set protocol to null |
| 17 PASS a.href is 'https://www.mydomain.com/path/' | 17 PASS a.href is 'https://www.mydomain.com/path/' |
| 18 Set protocol to empty string | 18 Set protocol to empty string |
| 19 PASS a.href is 'https://www.mydomain.com/path/' | 19 PASS a.href is 'https://www.mydomain.com/path/' |
| 20 Set protocol to http on malformed URL | 20 Set protocol to http on malformed URL |
| 21 PASS a.href is 'http:/??bar' | 21 PASS a.href is 'http:/??bar' |
| 22 Set protocol to a URL which points to a local file | 22 Set protocol to a URL which points to a local file |
| 23 PASS a.href is 'f-oo:path' | 23 FAIL a.href should be f-oo:path. Was f-oo:///C:/path. |
| 24 Set protocol to undefined | 24 Set protocol to undefined |
| 25 PASS a.href is 'undefined://www.mydomain.com/path/' | 25 PASS a.href is 'undefined://www.mydomain.com/path/' |
| 26 PASS successfullyParsed is true | 26 PASS successfullyParsed is true |
| 27 | 27 |
| 28 TEST COMPLETE | 28 TEST COMPLETE |
| 29 | 29 |
| OLD | NEW |