From 03d6cb88fff2fcb3b6ce69a903704b9346b76f7e Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Thu, 9 Mar 2023 21:35:15 +0100 Subject: LibWeb: Port KeyboardEvent to new String --- Userland/Libraries/LibWeb/DOM/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/DOM/Document.cpp') diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 7e2c3fbc88..3c89549ecb 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -1293,7 +1293,7 @@ WebIDL::ExceptionOr> Document::create_event(DeprecatedSt } else if (Infra::is_ascii_case_insensitive_match(interface, "htmlevents"sv)) { event = TRY(Event::create(realm, "")); } else if (Infra::is_ascii_case_insensitive_match(interface, "keyboardevent"sv)) { - event = TRY(UIEvents::KeyboardEvent::create(realm, "")); + event = TRY(UIEvents::KeyboardEvent::create(realm, String {})); } else if (Infra::is_ascii_case_insensitive_match(interface, "messageevent"sv)) { event = TRY(HTML::MessageEvent::create(realm, String {})); } else if (Infra::is_ascii_case_insensitive_match(interface, "mouseevent"sv) -- cgit v1.2.3