AK: Correctly set host when parsing URL with a base file:// host

We were completely missing this spec step here. Also leave a FIXME for
the pre-existing implementation of this step, as this doesn't match the
spec.
This commit is contained in:
Shannon Booth 2023-09-17 13:47:29 +12:00 committed by Andreas Kling
commit bfdf7779ce
Notes: sideshowbarker 2024-07-16 23:34:49 +09:00
3 changed files with 14 additions and 0 deletions

View file

@ -58,3 +58,13 @@ port => ''
pathname => '/cat'
search => '?dog'
hash => '#meow%22woof'
new URL('/hello', 'file://friends/')
protocol => 'file:'
username => ''
password => ''
host => 'friends'
hostname => 'friends'
port => ''
pathname => '/hello'
search => ''
hash => ''