mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibWeb: Rename Document::complete_url() => parse_url()
This better matches the spec nomenclature.
This commit is contained in:
parent
0839442da5
commit
e1fb8bef09
Notes:
sideshowbarker
2024-07-18 04:22:15 +09:00
Author: https://github.com/awesomekling
Commit: e1fb8bef09
12 changed files with 18 additions and 16 deletions
|
@ -255,7 +255,7 @@ void HTMLScriptElement::prepare_script()
|
|||
m_from_an_external_file = true;
|
||||
|
||||
// 4. Parse src relative to the element's node document.
|
||||
auto url = document().complete_url(src);
|
||||
auto url = document().parse_url(src);
|
||||
// 5. If the previous step failed, queue a task to fire an event named error at the element, and return. Otherwise, let url be the resulting URL record.
|
||||
if (!url.is_valid()) {
|
||||
dbgln("HTMLScriptElement: Refusing to run script because the src URL '{}' is invalid.", url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue