mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 02:52:52 +00:00
LibWeb: Fix typos - act II
This commit is contained in:
parent
86be8abfbf
commit
5cc371d54c
Notes:
github-actions[bot]
2025-04-09 14:06:24 +00:00
Author: https://github.com/szepeviktor
Commit: 5cc371d54c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4264
Reviewed-by: https://github.com/AtkinsSJ ✅
30 changed files with 69 additions and 69 deletions
Libraries/LibWeb/HTML
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue