1 Test setting the search 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/?value=key'
8 Set search that starts with '?' and contains spaces
9 PASS a.href is 'https://www.mydomain.com/path/?val%20ue=%20key?'
10 Set search to a malformed URL
11 PASS a.href is 's:www.mydomain.com/path/?%'
12 Set search containing '#'
13 PASS a.href is 'https://www.mydomain.com/path/?value%23key#hash'
14 Set search to a malformed URL
15 PASS a.href is 'bad:/|/url?value=key'
17 PASS a.href is 'https://www.mydomain.com/path/?null'
18 Set search to empty string
19 PASS a.href is 'https://www.mydomain.com/path/'
20 PASS successfullyParsed is true