1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

Everywhere: Fix a few comment typos

This commit is contained in:
Nico Weber 2022-11-09 10:56:12 -05:00 committed by Linus Groh
parent bc807466f9
commit 6911c5545c
8 changed files with 9 additions and 9 deletions

View file

@ -32,13 +32,13 @@ public:
String product() const { return "Gecko"sv; }
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-productsub
String product_sub() const { return "20030107"sv; } // Compatability mode "Chrome"
String product_sub() const { return "20030107"sv; } // Compatibility mode "Chrome"
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-useragent
String user_agent() const;
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-vendor
String vendor() const { return "Google Inc."sv; } // Compatability mode "Chrome"
String vendor() const { return "Google Inc."sv; } // Compatibility mode "Chrome"
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-vendorsub
String vendor_sub() const { return ""sv; }

View file

@ -669,7 +669,7 @@ bool EventHandler::fire_keyboard_event(FlyString const& event_name, HTML::Browsi
return focused_element->dispatch_event(*event);
}
// FIXME: De-duplicate this. This is just to prevent wasting a KeyboardEvent alloction when recursing into an (i)frame.
// FIXME: De-duplicate this. This is just to prevent wasting a KeyboardEvent allocation when recursing into an (i)frame.
auto event = UIEvents::KeyboardEvent::create_from_platform_event(document->realm(), event_name, key, modifiers, code_point);
if (JS::GCPtr<HTML::HTMLElement> body = document->body())