|
2021 | 2021 | "href": "sc:/space%20",
|
2022 | 2022 | "pathname": "/space%20"
|
2023 | 2023 | }
|
| 2024 | + }, |
| 2025 | + { |
| 2026 | + "comment": "Trailing space should be encoded", |
| 2027 | + "href": "http://example.net", |
| 2028 | + "new_value": " ", |
| 2029 | + "expected": { |
| 2030 | + "href": "http://example.net/%20", |
| 2031 | + "pathname": "/%20" |
| 2032 | + } |
| 2033 | + }, |
| 2034 | + { |
| 2035 | + "comment": "Trailing C0 control should be encoded", |
| 2036 | + "href": "http://example.net", |
| 2037 | + "new_value": "\u0000", |
| 2038 | + "expected": { |
| 2039 | + "href": "http://example.net/%00", |
| 2040 | + "pathname": "/%00" |
| 2041 | + } |
2024 | 2042 | }
|
2025 | 2043 | ],
|
2026 | 2044 | "search": [
|
|
2141 | 2159 | "href": "sc:space #fragment",
|
2142 | 2160 | "search": ""
|
2143 | 2161 | }
|
| 2162 | + }, |
| 2163 | + { |
| 2164 | + "comment": "Trailing space should be encoded", |
| 2165 | + "href": "http://example.net", |
| 2166 | + "new_value": " ", |
| 2167 | + "expected": { |
| 2168 | + "href": "http://example.net/?%20", |
| 2169 | + "search": "?%20" |
| 2170 | + } |
| 2171 | + }, |
| 2172 | + { |
| 2173 | + "comment": "Trailing C0 control should be encoded", |
| 2174 | + "href": "http://example.net", |
| 2175 | + "new_value": "\u0000", |
| 2176 | + "expected": { |
| 2177 | + "href": "http://example.net/?%00", |
| 2178 | + "search": "?%00" |
| 2179 | + } |
2144 | 2180 | }
|
2145 | 2181 | ],
|
2146 | 2182 | "hash": [
|
|
2311 | 2347 | "href": "sc:space ?query",
|
2312 | 2348 | "hash": ""
|
2313 | 2349 | }
|
| 2350 | + }, |
| 2351 | + { |
| 2352 | + "comment": "Trailing space should be encoded", |
| 2353 | + "href": "http://example.net", |
| 2354 | + "new_value": " ", |
| 2355 | + "expected": { |
| 2356 | + "href": "http://example.net/#%20", |
| 2357 | + "hash": "#%20" |
| 2358 | + } |
| 2359 | + }, |
| 2360 | + { |
| 2361 | + "comment": "Trailing C0 control should be encoded", |
| 2362 | + "href": "http://example.net", |
| 2363 | + "new_value": "\u0000", |
| 2364 | + "expected": { |
| 2365 | + "href": "http://example.net/#%00", |
| 2366 | + "hash": "#%00" |
| 2367 | + } |
2314 | 2368 | }
|
2315 | 2369 | ],
|
2316 | 2370 | "href": [
|
|
0 commit comments