mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
LibWeb: Support Document.onreadystatechange
This is just a standard IDL event attribute handler. Fixes at least one WPT test: https://wpt.live/html/dom/documents/resource-metadata-management/document-readyState.html
This commit is contained in:
committed by
Andreas Kling
parent
de1475f99a
commit
26be8f865a
@@ -5666,4 +5666,14 @@ Document::StepsToFireBeforeunloadResult Document::steps_to_fire_beforeunload(boo
|
||||
return { unload_prompt_shown, unload_prompt_canceled };
|
||||
}
|
||||
|
||||
WebIDL::CallbackType* Document::onreadystatechange()
|
||||
{
|
||||
return event_handler_attribute(HTML::EventNames::readystatechange);
|
||||
}
|
||||
|
||||
void Document::set_onreadystatechange(WebIDL::CallbackType* value)
|
||||
{
|
||||
set_event_handler_attribute(HTML::EventNames::readystatechange, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user