mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Fix typos - act II
This commit is contained in:
Notes:
github-actions[bot]
2025-04-09 14:06:24 +00:00
Author: https://github.com/szepeviktor Commit: https://github.com/LadybirdBrowser/ladybird/commit/5cc371d54c8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4264 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -637,11 +637,11 @@ public:
|
||||
{
|
||||
// 2. ⌛ Process candidate: If candidate does not have a src attribute, or if its src attribute's value is the
|
||||
// empty string, then end the synchronous section, and jump down to the failed with elements step below.
|
||||
String candiate_src;
|
||||
String candidate_src;
|
||||
if (auto maybe_src = m_candidate->get_attribute(HTML::AttributeNames::src); maybe_src.has_value())
|
||||
candiate_src = *maybe_src;
|
||||
candidate_src = *maybe_src;
|
||||
|
||||
if (candiate_src.is_empty()) {
|
||||
if (candidate_src.is_empty()) {
|
||||
TRY(failed_with_elements());
|
||||
return {};
|
||||
}
|
||||
@@ -649,7 +649,7 @@ public:
|
||||
// 3. ⌛ Let urlString and urlRecord be the resulting URL string and the resulting URL record, respectively, that
|
||||
// would have resulted from parsing the URL specified by candidate's src attribute's value relative to the
|
||||
// candidate's node document when the src attribute was last changed.
|
||||
auto url_record = m_candidate->document().parse_url(candiate_src);
|
||||
auto url_record = m_candidate->document().parse_url(candidate_src);
|
||||
|
||||
// 4. ⌛ If urlString was not obtained successfully, then end the synchronous section, and jump down to the failed
|
||||
// with elements step below.
|
||||
|
||||
Reference in New Issue
Block a user