mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Fix steps for finding a navigable by target name
This commit is contained in:
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
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user