@@ -156,69 +156,69 @@ http://example.com/\uFEFF/foo s:http h:example.com p:/%EF%BB%BF/foo
156
156
http://example.com/\u202E/foo/\u202D/bar s:http h:example.com p:/%E2%80%AE/foo/%E2%80%AD/bar
157
157
158
158
# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/relative.js
159
- http://www.google.com/foo?bar=baz# about:blank s:http h:www.google.com p:/foo q:?bar=baz f:#
160
- http://www.google.com/foo?bar=baz#\s\u00BB s:http h:www.google.com p:/foo q:?bar=baz f:#\s\u00BB
161
- http://[www.google.com]/ s:http h:[www.google.com] p:/
159
+ http://www.google.com/foo?bar=baz# about:blank s:http h:www.google.com p:/foo q:?bar=baz f:# o:http://www.google.com
160
+ http://www.google.com/foo?bar=baz#\s\u00BB s:http h:www.google.com p:/foo q:?bar=baz f:#\s\u00BB o:http://www.google.com
161
+ http://[www.google.com]/ s:http h:[www.google.com] p:/ o:http://[www.google.com]
162
162
http://www.google.com s:http h:www.google.com p:/
163
163
http://192.0x00A80001 s:http h:192.0x00a80001 p:/
164
164
http://www/foo%2Ehtml s:http h:www p:/foo%2Ehtml
165
165
http://www/foo/%2E/html s:http h:www p:/foo/html
166
166
http://user:pass@/
167
167
http://%25DOMAIN:
[email protected] / s:http u:%25DOMAIN pass:foobar h:foodomain.com p:/
168
- http:\\\\www.google.com\\foo s:http h:www.google.com p:/foo
169
- http://foo:80/ s:http h:foo p:/
170
- http://foo:81/ s:http h:foo port:81 p:/
171
- httpa://foo:80/ s:httpa p://foo:80/
168
+ http:\\\\www.google.com\\foo s:http h:www.google.com p:/foo o:http://www.google.com
169
+ http://foo:80/ s:http h:foo p:/ o:http://foo:80
170
+ http://foo:81/ s:http h:foo port:81 p:/ o:http://foo:81
171
+ httpa://foo:80/ s:httpa p://foo:80/ o:httpa://foo:80
172
172
http://foo:-80/
173
- https://foo:443/ s:https h:foo p:/
174
- https://foo:80/ s:https h:foo port:80 p:/
175
- ftp://foo:21/ s:ftp h:foo p:/
176
- ftp://foo:80/ s:ftp h:foo port:80 p:/
177
- gopher://foo:70/ s:gopher h:foo p:/
178
- gopher://foo:443/ s:gopher h:foo port:443 p:/
179
- ws://foo:80/ s:ws h:foo p:/
180
- ws://foo:81/ s:ws h:foo port:81 p:/
181
- ws://foo:443/ s:ws h:foo port:443 p:/
182
- ws://foo:815/ s:ws h:foo port:815 p:/
183
- wss://foo:80/ s:wss h:foo port:80 p:/
184
- wss://foo:81/ s:wss h:foo port:81 p:/
185
- wss://foo:443/ s:wss h:foo p:/
186
- wss://foo:815/ s:wss h:foo port:815 p:/
187
- http:/example.com/ s:http h:example.com p:/
188
- ftp:/example.com/ s:ftp h:example.com p:/
189
- https:/example.com/ s:https h:example.com p:/
190
- madeupscheme:/example.com/ s:madeupscheme p:/example.com/
173
+ https://foo:443/ s:https h:foo p:/ o:https://foo:443
174
+ https://foo:80/ s:https h:foo port:80 p:/ o:http://foo:80
175
+ ftp://foo:21/ s:ftp h:foo p:/ o:ftp://foo:21
176
+ ftp://foo:80/ s:ftp h:foo port:80 p:/ o:ftp://foo:80
177
+ gopher://foo:70/ s:gopher h:foo p:/ o:gopher://foo:70
178
+ gopher://foo:443/ s:gopher h:foo port:443 p:/ o:gopher://foo:443
179
+ ws://foo:80/ s:ws h:foo p:/ o:ws://foo:80
180
+ ws://foo:81/ s:ws h:foo port:81 p:/ o:ws://foo:81
181
+ ws://foo:443/ s:ws h:foo port:443 p:/ o:ws://foo:443
182
+ ws://foo:815/ s:ws h:foo port:815 p:/ o:ws://goo:815
183
+ wss://foo:80/ s:wss h:foo port:80 p:/ o:wss://foo:80
184
+ wss://foo:81/ s:wss h:foo port:81 p:/ o:wss://foo:81
185
+ wss://foo:443/ s:wss h:foo p:/ o:wss://foo:443
186
+ wss://foo:815/ s:wss h:foo port:815 p:/ o:wss://foo:815
187
+ http:/example.com/ s:http h:example.com p:/ o:http://example.com
188
+ ftp:/example.com/ s:ftp h:example.com p:/ o:ftp:/example.com
189
+ https:/example.com/ s:https h:example.com p:/ o:https://example.com
190
+ madeupscheme:/example.com/ s:madeupscheme p:/example.com/ o:madeupscheme://example.com
191
191
file:/example.com/ s:file p:/example.com/
192
- ftps:/example.com/ s:ftps p:/example.com/
193
- gopher:/example.com/ s:gopher h:example.com p:/
194
- ws:/example.com/ s:ws h:example.com p:/
195
- wss:/example.com/ s:wss h:example.com p:/
192
+ ftps:/example.com/ s:ftps p:/example.com/ o:ftps://example.com
193
+ gopher:/example.com/ s:gopher h:example.com p:/ o:gopher://example.com
194
+ ws:/example.com/ s:ws h:example.com p:/ o:ws://example.com
195
+ wss:/example.com/ s:wss h:example.com p:/ o:wss://example.com
196
196
data:/example.com/ s:data p:/example.com/
197
197
javascript:/example.com/ s:javascript p:/example.com/
198
198
mailto:/example.com/ s:mailto p:/example.com/
199
- http:example.com/ s:http h:example.com p:/
200
- ftp:example.com/ s:ftp h:example.com p:/
201
- https:example.com/ s:https h:example.com p:/
202
- madeupscheme:example.com/ s:madeupscheme p:example.com/
203
- ftps:example.com/ s:ftps p:example.com/
204
- gopher:example.com/ s:gopher h:example.com p:/
205
- ws:example.com/ s:ws h:example.com p:/
206
- wss:example.com/ s:wss h:example.com p:/
199
+ http:example.com/ s:http h:example.com p:/ o:http://example.com
200
+ ftp:example.com/ s:ftp h:example.com p:/ o:ftp://example.com
201
+ https:example.com/ s:https h:example.com p:/ o:https://example.com
202
+ madeupscheme:example.com/ s:madeupscheme p:example.com/ o:madeupscheme://example.com
203
+ ftps:example.com/ s:ftps p:example.com/ o:ftps://example.com
204
+ gopher:example.com/ s:gopher h:example.com p:/ o:gopher://example.com
205
+ ws:example.com/ s:ws h:example.com p:/ o:ws://example.com
206
+ wss:example.com/ s:wss h:example.com p:/ o:wss://example.com
207
207
data:example.com/ s:data p:example.com/
208
208
javascript:example.com/ s:javascript p:example.com/
209
209
mailto:example.com/ s:mailto p:example.com/
210
210
211
211
# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/segments-userinfo-vs-host.html
212
- http:@www.example.com about:blank s:http h:www.example.com p:/
213
- http:/@www.example.com s:http h:www.example.com p:/
214
- http://@www.example.com s:http h:www.example.com p:/
215
- http:a:
[email protected] s:http u:a pass:b h:www.example.com p:/
216
- http:/a:
[email protected] s:http u:a pass:b h:www.example.com p:/
217
- http://a:
[email protected] s:http u:a pass:b h:www.example.com p:/
218
- http://@pple.com s:http h:pple.com p:/
219
- http::
[email protected] s:http pass:b h:www.example.com p:/
220
- http:/:
[email protected] s:http pass:b h:www.example.com p:/
221
- http://:
[email protected] s:http pass:b h:www.example.com p:/
212
+ http:@www.example.com about:blank s:http h:www.example.com p:/ o:http://www.example.com
213
+ http:/@www.example.com s:http h:www.example.com p:/ o:http://www.example.com
214
+ http://@www.example.com s:http h:www.example.com p:/ o:http://www.example.com
215
+ http:a:
[email protected] s:http u:a pass:b h:www.example.com p:/
o:http://www.example.com
216
+ http:/a:
[email protected] s:http u:a pass:b h:www.example.com p:/
o:http://www.example.com
217
+ http://a:
[email protected] s:http u:a pass:b h:www.example.com p:/
o:http://www.example.com
218
+ http://@pple.com s:http h:pple.com p:/ o:http://ppl.com
219
+ http::
[email protected] s:http pass:b h:www.example.com p:/
o:http://www.example.com
220
+ http:/:
[email protected] s:http pass:b h:www.example.com p:/
o:http://www.example.com
221
+ http://:
[email protected] s:http pass:b h:www.example.com p:/
o:http://www.example.com
222
222
http:/:@/www.example.com
223
223
http://user@/www.example.com
224
224
http:@/www.example.com
@@ -229,11 +229,11 @@ http:a:b@/www.example.com
229
229
http:/a:b@/www.example.com
230
230
http://a:b@/www.example.com
231
231
http::@/www.example.com
232
- http:a:@www.example.com s:http u:a pass: h:www.example.com p:/
233
- http:/a:@www.example.com s:http u:a pass: h:www.example.com p:/
234
- http://a:@www.example.com s:http u:a pass: h:www.example.com p:/
235
- http://
[email protected] s:http u:www. h:pple.com p:/
232
+ http:a:@www.example.com s:http u:a pass: h:www.example.com p:/ o:http://www.example.com
233
+ http:/a:@www.example.com s:http u:a pass: h:www.example.com p:/ o:http://www.example.com
234
+ http://a:@www.example.com s:http u:a pass: h:www.example.com p:/ o:http://www.example.com
235
+ http://
[email protected] s:http u:www. h:pple.com p:/
o:http://ppl.com
236
236
http:@:www.example.com
237
237
http:/@:www.example.com
238
238
http://@:www.example.com
239
- http://:@www.example.com s:http pass: h:www.example.com p:/
239
+ http://:@www.example.com s:http pass: h:www.example.com p:/ o:http://www.example.com
0 commit comments