From 99502708087031172bca0e0dc423b28d82517ea8 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 21 Nov 2020 19:15:57 +0000 Subject: LibWeb: Add HTML::EventNames and UIEvents::EventNames --- Libraries/LibWeb/HTML/HTMLScriptElement.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Libraries/LibWeb/HTML/HTMLScriptElement.cpp') diff --git a/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Libraries/LibWeb/HTML/HTMLScriptElement.cpp index 524d9d742c..a71ecd9fbd 100644 --- a/Libraries/LibWeb/HTML/HTMLScriptElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLScriptElement.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -58,7 +59,7 @@ void HTMLScriptElement::execute_script() document().run_javascript(m_script_source); if (has_attribute(HTML::AttributeNames::src)) - dispatch_event(DOM::Event::create("load")); + dispatch_event(DOM::Event::create(EventNames::load)); } void HTMLScriptElement::prepare_script(Badge) -- cgit v1.2.3