mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibWeb: Add a basic implementation of Document.createEvent()
This is a legacy function providing a way of constructing events without using their constructors exposed on the global object. We don't have many of the events it supports yet, nor can we throw a DOMException from it, so that's two FIXMEs for later.
This commit is contained in:
parent
9d2635d94b
commit
d8d16dea95
3 changed files with 59 additions and 0 deletions
|
@ -172,6 +172,7 @@ public:
|
|||
NonnullRefPtr<Text> create_text_node(const String& data);
|
||||
NonnullRefPtr<Comment> create_comment(const String& data);
|
||||
NonnullRefPtr<Range> create_range();
|
||||
NonnullRefPtr<Event> create_event(const String& interface);
|
||||
|
||||
void set_pending_parsing_blocking_script(Badge<HTML::HTMLScriptElement>, HTML::HTMLScriptElement*);
|
||||
HTML::HTMLScriptElement* pending_parsing_blocking_script() { return m_pending_parsing_blocking_script; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue