File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,7 @@ impl<'a> Parser<'a> {
451
451
let scheme_end = "file" . len ( ) as u32 ;
452
452
let path_start = "file://" . len ( ) as u32 ;
453
453
let fragment_start = "file:///" . len ( ) as u32 ;
454
+ self . serialization . push ( '#' ) ;
454
455
self . parse_fragment ( input_after_first_char) ;
455
456
Ok ( Url {
456
457
serialization : self . serialization ,
Original file line number Diff line number Diff line change 5371
5371
"search" : " ?q=v" ,
5372
5372
"hash" : " "
5373
5373
},
5374
+ {
5375
+ "input" : " file:#frag" ,
5376
+ "base" : " about:blank" ,
5377
+ "href" : " file:///#frag" ,
5378
+ "protocol" : " file:" ,
5379
+ "username" : " " ,
5380
+ "password" : " " ,
5381
+ "host" : " " ,
5382
+ "hostname" : " " ,
5383
+ "port" : " " ,
5384
+ "pathname" : " /" ,
5385
+ "search" : " " ,
5386
+ "hash" : " #frag"
5387
+ },
5374
5388
" # IPv6 tests" ,
5375
5389
{
5376
5390
"input" : " http://[1:0::]" ,
You can’t perform that action at this time.
0 commit comments