mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
The definition of an "ASCII tab or newline" also includes U+000D CR. This fixes 3 subtests in: https://wpt.live/url/url-constructor.any.html
222 lines
4.5 KiB
Plaintext
222 lines
4.5 KiB
Plaintext
new URL('ftp://serenityos.org:21', undefined)
|
|
protocol => 'ftp:'
|
|
username => ''
|
|
password => ''
|
|
host => 'serenityos.org'
|
|
hostname => 'serenityos.org'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
new URL('http://[0:1:0:1:0:1:0:1]', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => '[0:1:0:1:0:1:0:1]'
|
|
hostname => '[0:1:0:1:0:1:0:1]'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
new URL('http://[1:0:1:0:1:0:1:0]', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => '[1:0:1:0:1:0:1:0]'
|
|
hostname => '[1:0:1:0:1:0:1:0]'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
new URL('http://[1:1:0:0:1:0:0:0]/', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => '[1:1:0:0:1::]'
|
|
hostname => '[1:1:0:0:1::]'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
new URL('unknown://serenityos.org:0', undefined)
|
|
protocol => 'unknown:'
|
|
username => ''
|
|
password => ''
|
|
host => 'serenityos.org:0'
|
|
hostname => 'serenityos.org'
|
|
port => '0'
|
|
pathname => ''
|
|
search => ''
|
|
hash => ''
|
|
new URL('http://serenityos.org/cat?dog#meow"woof', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => 'serenityos.org'
|
|
hostname => 'serenityos.org'
|
|
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 => ''
|
|
new URL('//d:/..', 'file:///C:/a/b')
|
|
protocol => 'file:'
|
|
username => ''
|
|
password => ''
|
|
host => ''
|
|
hostname => ''
|
|
port => ''
|
|
pathname => '/d:/'
|
|
search => ''
|
|
hash => ''
|
|
new URL('file://a%C2%ADb/p', undefined)
|
|
protocol => 'file:'
|
|
username => ''
|
|
password => ''
|
|
host => 'ab'
|
|
hostname => 'ab'
|
|
port => ''
|
|
pathname => '/p'
|
|
search => ''
|
|
hash => ''
|
|
new URL('http://user%20name:pa%40ss%3Aword@www.ladybird.org', undefined)
|
|
protocol => 'http:'
|
|
username => 'user%20name'
|
|
password => 'pa%40ss%3Aword'
|
|
host => 'www.ladybird.org'
|
|
hostname => 'www.ladybird.org'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
new URL('h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => 'host:9000'
|
|
hostname => 'host'
|
|
port => '9000'
|
|
pathname => '/path'
|
|
search => '?query'
|
|
hash => '#frag'
|
|
=========================================
|
|
URL.parse('ftp://serenityos.org:21', undefined)
|
|
protocol => 'ftp:'
|
|
username => ''
|
|
password => ''
|
|
host => 'serenityos.org'
|
|
hostname => 'serenityos.org'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('http://[0:1:0:1:0:1:0:1]', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => '[0:1:0:1:0:1:0:1]'
|
|
hostname => '[0:1:0:1:0:1:0:1]'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('http://[1:0:1:0:1:0:1:0]', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => '[1:0:1:0:1:0:1:0]'
|
|
hostname => '[1:0:1:0:1:0:1:0]'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('http://[1:1:0:0:1:0:0:0]/', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => '[1:1:0:0:1::]'
|
|
hostname => '[1:1:0:0:1::]'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('unknown://serenityos.org:0', undefined)
|
|
protocol => 'unknown:'
|
|
username => ''
|
|
password => ''
|
|
host => 'serenityos.org:0'
|
|
hostname => 'serenityos.org'
|
|
port => '0'
|
|
pathname => ''
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('http://serenityos.org/cat?dog#meow"woof', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => 'serenityos.org'
|
|
hostname => 'serenityos.org'
|
|
port => ''
|
|
pathname => '/cat'
|
|
search => '?dog'
|
|
hash => '#meow%22woof'
|
|
URL.parse('/hello', 'file://friends/')
|
|
protocol => 'file:'
|
|
username => ''
|
|
password => ''
|
|
host => 'friends'
|
|
hostname => 'friends'
|
|
port => ''
|
|
pathname => '/hello'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('//d:/..', 'file:///C:/a/b')
|
|
protocol => 'file:'
|
|
username => ''
|
|
password => ''
|
|
host => ''
|
|
hostname => ''
|
|
port => ''
|
|
pathname => '/d:/'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('file://a%C2%ADb/p', undefined)
|
|
protocol => 'file:'
|
|
username => ''
|
|
password => ''
|
|
host => 'ab'
|
|
hostname => 'ab'
|
|
port => ''
|
|
pathname => '/p'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('http://user%20name:pa%40ss%3Aword@www.ladybird.org', undefined)
|
|
protocol => 'http:'
|
|
username => 'user%20name'
|
|
password => 'pa%40ss%3Aword'
|
|
host => 'www.ladybird.org'
|
|
hostname => 'www.ladybird.org'
|
|
port => ''
|
|
pathname => '/'
|
|
search => ''
|
|
hash => ''
|
|
URL.parse('h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg', undefined)
|
|
protocol => 'http:'
|
|
username => ''
|
|
password => ''
|
|
host => 'host:9000'
|
|
hostname => 'host'
|
|
port => '9000'
|
|
pathname => '/path'
|
|
search => '?query'
|
|
hash => '#frag'
|