mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibWeb: Make document.createEvent("hashchangeevent") produce right type
This is supposed to return a HashChangeEvent, and now it does.
This commit is contained in:
parent
f4f4f7781d
commit
0389f01cc8
Notes:
sideshowbarker
2024-07-16 23:23:26 +09:00
Author: https://github.com/awesomekling
Commit: 0389f01cc8
Pull-request: https://github.com/SerenityOS/serenity/pull/23987
Reviewed-by: https://github.com/kalenikaliaksandr
3 changed files with 9 additions and 1 deletions
|
@ -1624,7 +1624,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Event>> Document::create_event(StringView i
|
|||
} else if (Infra::is_ascii_case_insensitive_match(interface, "focusevent"sv)) {
|
||||
event = UIEvents::FocusEvent::create(realm, FlyString {});
|
||||
} else if (Infra::is_ascii_case_insensitive_match(interface, "hashchangeevent"sv)) {
|
||||
event = Event::create(realm, FlyString {}); // FIXME: Create HashChangeEvent
|
||||
event = HTML::HashChangeEvent::create(realm, FlyString {}, {});
|
||||
} else if (Infra::is_ascii_case_insensitive_match(interface, "htmlevents"sv)) {
|
||||
event = Event::create(realm, FlyString {});
|
||||
} else if (Infra::is_ascii_case_insensitive_match(interface, "keyboardevent"sv)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue