summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash-expected.txt
blob: a757f84689d008cff950a8a2af1c0c9559bc73cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Test setting the hash attribute of the URL in HTMLAnchorElement.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Hash value does not start with '#'
PASS a.href is 'https://www.mydomain.com:8080/path/testurl.html#hash-value'
Hash value starts with '#'
PASS a.href is 'file:///path/testurl.html#hash_value'
'?' in hash value
PASS a.href is 'http://www.mydomain.com/path/testurl.html#hash?value'
'#' in hash value, and illegal characters in hostname
PASS a.href is 'https://www.my"d(){}|~om?ain#com/path/testurl.html#middle'
Set hash to null
PASS a.href is 'https://www.mydomain.com/path/testurl.html#'
Set hash to empty string
PASS a.href is 'https://www.mydomain.com/path/testurl.html#'
Add hash to mailto: protocol
PASS a.href is 'mailto:e-mail_address@goes_here#hash-value'
Add hash to file: protocol
PASS a.href is 'file:///some%20path#hash value'
Set hash to '#'
PASS a.href is 'http://mydomain.com/#'
Add hash to non-standard protocol
PASS a.href is 'foo:bar#hash'
PASS successfullyParsed is true

TEST COMPLETE