summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2023-03-09 21:35:15 +0100
committerAndreas Kling <kling@serenityos.org>2023-04-06 08:41:43 +0200
commit03d6cb88fff2fcb3b6ce69a903704b9346b76f7e (patch)
tree92f768b7a8e18aea1128455f7601c6738d48a34d /Userland/Libraries/LibWeb/DOM
parente14be3927a2952228d0dc54faae44f87efa4079d (diff)
downloadserenity-03d6cb88fff2fcb3b6ce69a903704b9346b76f7e.zip
LibWeb: Port KeyboardEvent to new String
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.cpp2
1 files changed, 1 insertions, 1 deletions
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<JS::NonnullGCPtr<Event>> 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)