|
153 | 153 | {
|
154 | 154 | "input": "http://f:21/ b ? d # e ",
|
155 | 155 | "base": "http://example.org/foo/bar",
|
156 |
| - "href": "http://f:21/%20b%20?%20d%20# e", |
| 156 | + "href": "http://f:21/%20b%20?%20d%20#%20e", |
157 | 157 | "origin": "http://f:21",
|
158 | 158 | "protocol": "http:",
|
159 | 159 | "username": "",
|
|
163 | 163 | "port": "21",
|
164 | 164 | "pathname": "/%20b%20",
|
165 | 165 | "search": "?%20d%20",
|
166 |
| - "hash": "# e" |
| 166 | + "hash": "#%20e" |
167 | 167 | },
|
168 | 168 | {
|
169 | 169 | "input": "lolscheme:x x#x x",
|
170 | 170 | "base": "about:blank",
|
171 |
| - "href": "lolscheme:x x#x x", |
| 171 | + "href": "lolscheme:x x#x%20x", |
172 | 172 | "protocol": "lolscheme:",
|
173 | 173 | "username": "",
|
174 | 174 | "password": "",
|
|
177 | 177 | "port": "",
|
178 | 178 | "pathname": "x x",
|
179 | 179 | "search": "",
|
180 |
| - "hash": "#x x" |
| 180 | + "hash": "#x%20x" |
181 | 181 | },
|
182 | 182 | {
|
183 | 183 | "input": "http://f:/c",
|
|
2260 | 2260 | {
|
2261 | 2261 | "input": "http://www.google.com/foo?bar=baz# »",
|
2262 | 2262 | "base": "about:blank",
|
2263 |
| - "href": "http://www.google.com/foo?bar=baz# %C2%BB", |
| 2263 | + "href": "http://www.google.com/foo?bar=baz#%20%C2%BB", |
2264 | 2264 | "origin": "http://www.google.com",
|
2265 | 2265 | "protocol": "http:",
|
2266 | 2266 | "username": "",
|
|
2270 | 2270 | "port": "",
|
2271 | 2271 | "pathname": "/foo",
|
2272 | 2272 | "search": "?bar=baz",
|
2273 |
| - "hash": "# %C2%BB" |
| 2273 | + "hash": "#%20%C2%BB" |
2274 | 2274 | },
|
2275 | 2275 | {
|
2276 | 2276 | "input": "data:test# »",
|
2277 | 2277 | "base": "about:blank",
|
2278 |
| - "href": "data:test# %C2%BB", |
| 2278 | + "href": "data:test#%20%C2%BB", |
2279 | 2279 | "origin": "null",
|
2280 | 2280 | "protocol": "data:",
|
2281 | 2281 | "username": "",
|
|
2285 | 2285 | "port": "",
|
2286 | 2286 | "pathname": "test",
|
2287 | 2287 | "search": "",
|
2288 |
| - "hash": "# %C2%BB" |
| 2288 | + "hash": "#%20%C2%BB" |
2289 | 2289 | },
|
2290 | 2290 | {
|
2291 | 2291 | "input": "http://www.google.com",
|
|
4787 | 4787 | "searchParams": "qux=",
|
4788 | 4788 | "hash": "#foo%08bar"
|
4789 | 4789 | },
|
| 4790 | + { |
| 4791 | + "input": "http://foo.bar/baz?qux#foo\"bar", |
| 4792 | + "base": "about:blank", |
| 4793 | + "href": "http://foo.bar/baz?qux#foo%22bar", |
| 4794 | + "origin": "http://foo.bar", |
| 4795 | + "protocol": "http:", |
| 4796 | + "username": "", |
| 4797 | + "password": "", |
| 4798 | + "host": "foo.bar", |
| 4799 | + "hostname": "foo.bar", |
| 4800 | + "port": "", |
| 4801 | + "pathname": "/baz", |
| 4802 | + "search": "?qux", |
| 4803 | + "searchParams": "qux=", |
| 4804 | + "hash": "#foo%22bar" |
| 4805 | + }, |
| 4806 | + { |
| 4807 | + "input": "http://foo.bar/baz?qux#foo<bar", |
| 4808 | + "base": "about:blank", |
| 4809 | + "href": "http://foo.bar/baz?qux#foo%3Cbar", |
| 4810 | + "origin": "http://foo.bar", |
| 4811 | + "protocol": "http:", |
| 4812 | + "username": "", |
| 4813 | + "password": "", |
| 4814 | + "host": "foo.bar", |
| 4815 | + "hostname": "foo.bar", |
| 4816 | + "port": "", |
| 4817 | + "pathname": "/baz", |
| 4818 | + "search": "?qux", |
| 4819 | + "searchParams": "qux=", |
| 4820 | + "hash": "#foo%3Cbar" |
| 4821 | + }, |
| 4822 | + { |
| 4823 | + "input": "http://foo.bar/baz?qux#foo>bar", |
| 4824 | + "base": "about:blank", |
| 4825 | + "href": "http://foo.bar/baz?qux#foo%3Ebar", |
| 4826 | + "origin": "http://foo.bar", |
| 4827 | + "protocol": "http:", |
| 4828 | + "username": "", |
| 4829 | + "password": "", |
| 4830 | + "host": "foo.bar", |
| 4831 | + "hostname": "foo.bar", |
| 4832 | + "port": "", |
| 4833 | + "pathname": "/baz", |
| 4834 | + "search": "?qux", |
| 4835 | + "searchParams": "qux=", |
| 4836 | + "hash": "#foo%3Ebar" |
| 4837 | + }, |
| 4838 | + { |
| 4839 | + "input": "http://foo.bar/baz?qux#foo`bar", |
| 4840 | + "base": "about:blank", |
| 4841 | + "href": "http://foo.bar/baz?qux#foo%60bar", |
| 4842 | + "origin": "http://foo.bar", |
| 4843 | + "protocol": "http:", |
| 4844 | + "username": "", |
| 4845 | + "password": "", |
| 4846 | + "host": "foo.bar", |
| 4847 | + "hostname": "foo.bar", |
| 4848 | + "port": "", |
| 4849 | + "pathname": "/baz", |
| 4850 | + "search": "?qux", |
| 4851 | + "searchParams": "qux=", |
| 4852 | + "hash": "#foo%60bar" |
| 4853 | + }, |
4790 | 4854 | "# IPv4 parsing (via https://github.com/nodejs/node/pull/10317)",
|
4791 | 4855 | {
|
4792 | 4856 | "input": "http://192.168.257",
|
|
0 commit comments