mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Use text encoding from DOM when parsing URLs
This passes the DOM encoding down to the URL parser, so the correct encoder can be used.
This commit is contained in:
parent
d80575a410
commit
c1958437f9
Notes:
github-actions[bot]
2024-08-08 16:51:10 +00:00
Author: https://github.com/BenJilks
Commit: c1958437f9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/975
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/skyrising
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 11 additions and 8 deletions
|
@ -1034,7 +1034,7 @@ URL::URL Document::parse_url(StringView url) const
|
|||
auto base_url = this->base_url();
|
||||
|
||||
// 2. Return the result of applying the URL parser to url, with baseURL.
|
||||
return DOMURL::parse(url, base_url);
|
||||
return DOMURL::parse(url, base_url, Optional<StringView> { m_encoding });
|
||||
}
|
||||
|
||||
void Document::set_needs_layout()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue