mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibURL: Also remove carriage returns from URL input
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
This commit is contained in:
parent
a342370dfb
commit
41cf9f6fe3
Notes:
github-actions[bot]
2024-08-05 12:56:58 +00:00
Author: https://github.com/shannonbooth
Commit: 41cf9f6fe3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/967
3 changed files with 34 additions and 6 deletions
|
@ -98,6 +98,16 @@ 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:'
|
||||
|
@ -199,3 +209,13 @@ 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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue