| OLD | NEW |
| 1 Test setting the search attribute of the URL in HTMLAnchorElement . | 1 Test setting the search attribute of the URL in HTMLAnchorElement . |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 Set search without '?' | 6 Set search without '?' |
| 7 PASS a.href is 'https://www.mydomain.com/path/?value=key' | 7 PASS a.href is 'https://www.mydomain.com/path/?value=key' |
| 8 Set search that starts with '?' and contains spaces | 8 Set search that starts with '?' and contains spaces |
| 9 PASS a.href is 'https://www.mydomain.com/path/?val%20ue=%20key?' | 9 PASS a.href is 'https://www.mydomain.com/path/?val%20ue=%20key?' |
| 10 Set search to a malformed URL | 10 Set search to a malformed URL |
| 11 FAIL a.href should be s:www.mydomain.com/path/?%. Was s:www.mydomain.com/path/. | 11 FAIL a.href should be s:www.mydomain.com/path/?%. Was s:www.mydomain.com/path/. |
| 12 Set search containing '#' | 12 Set search containing '#' |
| 13 PASS a.href is 'https://www.mydomain.com/path/?value%23key#hash' | 13 PASS a.href is 'https://www.mydomain.com/path/?value%23key#hash' |
| 14 Set search to a malformed URL | 14 Set search to a malformed URL |
| 15 FAIL a.href should be bad:/|/url?value=key. Was bad:/|/url. | 15 FAIL a.href should be bad:/|/url?value=key. Was bad:/|/url. |
| 16 Set search to null | 16 Set search to null |
| 17 PASS a.href is 'https://www.mydomain.com/path/' | 17 PASS a.href is 'https://www.mydomain.com/path/?null' |
| 18 Set search to empty string | 18 Set search to empty string |
| 19 PASS a.href is 'https://www.mydomain.com/path/?' | 19 PASS a.href is 'https://www.mydomain.com/path/?' |
| 20 PASS successfullyParsed is true | 20 PASS successfullyParsed is true |
| 21 | 21 |
| 22 TEST COMPLETE | 22 TEST COMPLETE |
| 23 | 23 |
| OLD | NEW |