Use document encoding when parsing url in href setter (#33825)

* Implement encoding-parse-a-url algorithm

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Parse url with encoding when setting href on HtmlAnchorElement

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-10-13 17:12:51 +02:00 committed by GitHub
parent 76776bf082
commit bdd5fb2e5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 46 additions and 225832 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,4 @@
[percent-encoding.window.html]
[Input † with encoding windows-1252]
expected: FAIL
[Input with encoding shift_jis]
expected: FAIL
[Input \x0eA with encoding iso-2022-jp]
expected: FAIL
@ -14,11 +8,5 @@
[Input † with encoding big5]
expected: FAIL
[Input † with encoding euc-kr]
expected: FAIL
[Input ‾\\ with encoding iso-2022-jp]
expected: FAIL
[Input U+d800 with encoding windows-1252]
expected: FAIL