|
2548 | 2548 | "href": "http://example.net/#%00", |
2549 | 2549 | "hash": "#%00" |
2550 | 2550 | } |
| 2551 | + }, |
| 2552 | + { |
| 2553 | + "comment": "Fragment with <> on data: URI", |
| 2554 | + "href": "data:text/plain,test", |
| 2555 | + "new_value": "#<foo> <bar>", |
| 2556 | + "expected": { |
| 2557 | + "href": "data:text/plain,test#%3Cfoo%3E%20%3Cbar%3E", |
| 2558 | + "hash": "#%3Cfoo%3E%20%3Cbar%3E" |
| 2559 | + } |
| 2560 | + }, |
| 2561 | + { |
| 2562 | + "comment": "Fragment with <> on about:blank", |
| 2563 | + "href": "about:blank", |
| 2564 | + "new_value": "#<foo> <bar>", |
| 2565 | + "expected": { |
| 2566 | + "href": "about:blank#%3Cfoo%3E%20%3Cbar%3E", |
| 2567 | + "hash": "#%3Cfoo%3E%20%3Cbar%3E" |
| 2568 | + } |
| 2569 | + }, |
| 2570 | + { |
| 2571 | + "comment": "Fragment percent-encode set on data: URI; tabs and newlines are removed", |
| 2572 | + "href": "data:text/plain,test", |
| 2573 | + "new_value": "#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé", |
| 2574 | + "expected": { |
| 2575 | + "href": "data:text/plain,test#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9", |
| 2576 | + "hash": "#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9" |
| 2577 | + } |
| 2578 | + }, |
| 2579 | + { |
| 2580 | + "comment": "Fragment percent-encode set on about:blank; tabs and newlines are removed", |
| 2581 | + "href": "about:blank", |
| 2582 | + "new_value": "#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé", |
| 2583 | + "expected": { |
| 2584 | + "href": "about:blank#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9", |
| 2585 | + "hash": "#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9" |
| 2586 | + } |
2551 | 2587 | } |
2552 | 2588 | ], |
2553 | 2589 | "href": [ |
|
0 commit comments