mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Replace usages of Document::parse_url()
The spec has been updated to use `encoding_parse_url()` and `encoding_parse_and_serialize_url()` instead.
This commit is contained in:
parent
8d6f2390f6
commit
ff3d3840ac
Notes:
github-actions[bot]
2025-06-24 17:56:55 +00:00
Author: https://github.com/tcl3
Commit: ff3d3840ac
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5201
Reviewed-by: https://github.com/gmta ✅
12 changed files with 106 additions and 98 deletions
|
@ -146,7 +146,7 @@ void SVGImageElement::process_the_url(Optional<String> const& href)
|
|||
return;
|
||||
}
|
||||
|
||||
m_href = document().parse_url(*href);
|
||||
m_href = document().encoding_parse_url(*href);
|
||||
if (!m_href.has_value())
|
||||
return;
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ void SVGScriptElement::process_the_script_element()
|
|||
if (has_attribute(SVG::AttributeNames::href) || has_attribute_ns(Namespace::XLink.to_string(), SVG::AttributeNames::href)) {
|
||||
auto href_value = href()->base_val();
|
||||
|
||||
auto maybe_script_url = document().parse_url(href_value);
|
||||
auto maybe_script_url = document().encoding_parse_url(href_value);
|
||||
if (!maybe_script_url.has_value()) {
|
||||
dbgln("Invalid script URL: {}", href_value);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue