| OLD | NEW |
| (Empty) |
| 1 Test setting the host attribute of the URL in HTMLAnchorElement. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 Basic test | |
| 7 PASS a.href is 'https://www.otherdomain.com:0/path/' | |
| 8 Set host with '?' in it | |
| 9 PASS a.href is 'https://www.other/?domain.com:8080/path/?key=value' | |
| 10 Set default port for another protocol | |
| 11 PASS a.href is 'https://www.otherdomain.com:80/path/' | |
| 12 Set default port | |
| 13 PASS a.href is 'https://www.otherdomain.com/path/' | |
| 14 Set host with letters in port number | |
| 15 PASS a.href is 'https://www.otherdomain.com:44/path/' | |
| 16 Leading space in port number | |
| 17 PASS a.href is 'https://www.otherdomain.com:0/path/' | |
| 18 Colon without port number | |
| 19 PASS a.href is 'https://www.otherdomain.com:0/path/' | |
| 20 Set host to null | |
| 21 PASS a.href is 'https://www.mydomain.com:8080/path/' | |
| 22 Set host to empty string | |
| 23 PASS a.href is 'https://www.mydomain.com:8080/path/' | |
| 24 Set host to URL with file: protocol | |
| 25 PASS a.href is 'file://mydomain.com/path/' | |
| 26 Set host containing slashes in it | |
| 27 PASS a.href is 'https://www.otherdom/ain.com/path/' | |
| 28 Set host to a malformed URL | |
| 29 PASS a.href is 'https:/\rww.my@domain.com:8080/path/' | |
| 30 Set host that starts with ':' | |
| 31 PASS a.href is 'https://domain.com:8080/path/' | |
| 32 Set host to URL containing username and .. | |
| 33 PASS a.href is 'https://rwwmy@www.other!domain.com:25/pa..th/' | |
| 34 Set host to a URL with tel: protocol | |
| 35 PASS a.href is 'tel:+1-816-555-1212' | |
| 36 PASS successfullyParsed is true | |
| 37 | |
| 38 TEST COMPLETE | |
| 39 | |
| OLD | NEW |