1 Test setting the hash attribute of the URL in HTMLAnchorElement.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Hash value does not start with '#'
7 PASS a.href is 'https://www.mydomain.com:8080/path/testurl.html#hash-value'
8 Hash value starts with '#'
9 PASS a.href is 'file:///path/testurl.html#hash_value'
11 PASS a.href is 'http://www.mydomain.com/path/testurl.html#hash?value'
12 '#' in hash value, and illegal characters in hostname
13 FAIL a.href should be https://www.my"d(){}|~om?ain#com/path/testurl.html#middle. Was https://www.my%22d%28%29%7B%7D%7C%7Eom/?ain#hash#value.
15 PASS a.href is 'https://www.mydomain.com/path/testurl.html#null'
16 Set hash to empty string
17 PASS a.href is 'https://www.mydomain.com/path/testurl.html'
18 Add hash to mailto: protocol
19 FAIL a.href should be mailto:e-mail_address@goes_here#hash-value. Was mailto:e-mail_address@goes_here.
20 Add hash to file: protocol
21 PASS a.href is 'file:///some%20path#hash value'
23 PASS a.href is 'http://mydomain.com/'
24 Add hash to non-standard protocol
25 PASS a.href is 'foo:bar#hash'
26 PASS successfullyParsed is true