1 Test setting the port attribute of the URL in HTMLAnchorElement.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value'
9 PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value'
11 PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
12 Set port to non-number
13 PASS a.href is 'https://www.mydomain.com:4/path/testurl.html?key=value'
15 PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
16 Set port to empty string
17 PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
19 PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
20 Set port to URL with foo: protocol
21 FAIL a.href should be foo://bar:50/. Was foo://bar/.
22 PASS successfullyParsed is true