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 5414
5414
"search" : " ?q=v" ,
5415
5415
"hash" : " "
5416
5416
},
5417
+ {
5418
+ "input" : " file:#frag" ,
5419
+ "base" : " about:blank" ,
5420
+ "href" : " file:///#frag" ,
5421
+ "protocol" : " file:" ,
5422
+ "username" : " " ,
5423
+ "password" : " " ,
5424
+ "host" : " " ,
5425
+ "hostname" : " " ,
5426
+ "port" : " " ,
5427
+ "pathname" : " /" ,
5428
+ "search" : " " ,
5429
+ "hash" : " #frag"
5430
+ },
5417
5431
" # IPv6 tests" ,
5418
5432
{
5419
5433
"input" : " http://[1:0::]" ,
You can’t perform that action at this time.
0 commit comments