Home | History | Annotate | Download | only in HTMLAnchorElement
      1 Test setting the hash 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 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'
     10 '?' in 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 PASS a.href is 'https://www.my"d(){}|~om?ain#com/path/testurl.html#middle'
     14 Set hash to null
     15 PASS a.href is 'https://www.mydomain.com/path/testurl.html#'
     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 PASS a.href is 'mailto:e-mail_address@goes_here#hash-value'
     20 Add hash to file: protocol
     21 PASS a.href is 'file:///some%20path#hash value'
     22 Set hash to '#'
     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
     27 
     28 TEST COMPLETE
     29 
     30