mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibWeb: Implement XMLHttpRequest.onreadystatechange
This commit is contained in:
parent
824be02cb0
commit
dc8707527f
3 changed files with 16 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <LibWeb/DOM/EventListener.h>
|
||||
#include <LibWeb/DOM/ExceptionOr.h>
|
||||
#include <LibWeb/DOM/Window.h>
|
||||
#include <LibWeb/HTML/EventHandler.h>
|
||||
#include <LibWeb/HTML/EventNames.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
#include <LibWeb/Origin.h>
|
||||
|
@ -260,4 +261,14 @@ JS::Object* XMLHttpRequest::create_wrapper(JS::GlobalObject& global_object)
|
|||
return wrap(global_object, *this);
|
||||
}
|
||||
|
||||
HTML::EventHandler XMLHttpRequest::onreadystatechange()
|
||||
{
|
||||
return event_handler_attribute(Web::XHR::EventNames::readystatechange);
|
||||
}
|
||||
|
||||
void XMLHttpRequest::set_onreadystatechange(HTML::EventHandler value)
|
||||
{
|
||||
set_event_handler_attribute(Web::XHR::EventNames::readystatechange, move(value));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue