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

LibWeb: Adjust implementation of Document::create_event

With this change, it no longer calls TODO() and crashes WebContent
This commit is contained in:
stelar7 2022-06-06 22:11:39 +02:00 committed by Linus Groh
parent 857c3501df
commit 96caf3aed1
2 changed files with 28 additions and 11 deletions

View file

@ -186,7 +186,7 @@ public:
NonnullRefPtr<Text> create_text_node(String const& data);
NonnullRefPtr<Comment> create_comment(String const& data);
NonnullRefPtr<Range> create_range();
NonnullRefPtr<Event> create_event(String const& interface);
ExceptionOr<NonnullRefPtr<Event>> create_event(String const& interface);
void set_pending_parsing_blocking_script(Badge<HTML::HTMLScriptElement>, HTML::HTMLScriptElement*);
HTML::HTMLScriptElement* pending_parsing_blocking_script() { return m_pending_parsing_blocking_script; }