mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb: Fix steps for finding a navigable by target name
This commit is contained in:
parent
d3c481f71a
commit
8f79f2137e
Notes:
github-actions[bot]
2025-02-16 08:04:44 +00:00
Author: https://github.com/Psychpsyo Commit: https://github.com/LadybirdBrowser/ladybird/commit/8f79f2137e9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3577
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ GC::Ptr<Navigable> Navigable::find_a_navigable_by_target_name(StringView name)
|
|||
auto subtrees_to_search = current_document.inclusive_ancestor_navigables();
|
||||
|
||||
// 4. For each subtreeToSearch of subtreesToSearch, in reverse order:
|
||||
for (auto const& subtree_to_search : subtrees_to_search) {
|
||||
for (auto const& subtree_to_search : subtrees_to_search.in_reverse()) {
|
||||
// 1. Let documentToSearch be subtreeToSearch's active document.
|
||||
auto& document_to_search = *subtree_to_search->active_document();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue