From 329e9ed820ead326ed309f6cfb07f04695aa4c48 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Mon, 14 Oct 2024 11:30:43 +1300 Subject: [PATCH] LibWeb: Fix spec typo in inner_navigate_event_firing_algorithm --- Userland/Libraries/LibWeb/HTML/Navigation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/Navigation.cpp b/Userland/Libraries/LibWeb/HTML/Navigation.cpp index 71a36c6ef15..a97144331b9 100644 --- a/Userland/Libraries/LibWeb/HTML/Navigation.cpp +++ b/Userland/Libraries/LibWeb/HTML/Navigation.cpp @@ -983,11 +983,10 @@ bool Navigation::inner_navigate_event_firing_algorithm( && destination->same_document() && (user_involvement != UserNavigationInvolvement::BrowserUI || relevant_global_object.has_history_action_activation()); - // FIXME: Fix spec grammaro, extra 'the -> set' // 11. If either: // - navigationType is not "traverse"; or // - traverseCanBeCanceled is true - // the initialize event's cancelable to true. Otherwise, initialize it to false. + // then initialize event's cancelable to true. Otherwise, initialize it to false. event_init.cancelable = (navigation_type != Bindings::NavigationType::Traverse) || traverse_can_be_canceled; // 12. Initialize event's type to "navigate".