|
@@ -8,6 +8,7 @@
|
|
#include <LibWeb/DOM/AbortSignal.h>
|
|
#include <LibWeb/DOM/AbortSignal.h>
|
|
#include <LibWeb/DOM/Document.h>
|
|
#include <LibWeb/DOM/Document.h>
|
|
#include <LibWeb/DOM/EventDispatcher.h>
|
|
#include <LibWeb/DOM/EventDispatcher.h>
|
|
|
|
+#include <LibWeb/HTML/EventHandler.h>
|
|
|
|
|
|
namespace Web::DOM {
|
|
namespace Web::DOM {
|
|
|
|
|
|
@@ -50,4 +51,14 @@ void AbortSignal::signal_abort()
|
|
dispatch_event(Event::create(HTML::EventNames::abort));
|
|
dispatch_event(Event::create(HTML::EventNames::abort));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void AbortSignal::set_onabort(HTML::EventHandler event_handler)
|
|
|
|
+{
|
|
|
|
+ set_event_handler_attribute(HTML::EventNames::abort, event_handler);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+HTML::EventHandler AbortSignal::onabort()
|
|
|
|
+{
|
|
|
|
+ return event_handler_attribute(HTML::EventNames::abort);
|
|
|
|
+}
|
|
|
|
+
|
|
}
|
|
}
|