mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +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:
parent
de1475f99a
commit
26be8f865a
Notes:
github-actions[bot]
2024-10-08 16:50:11 +00:00
Author: https://github.com/awesomekling
Commit: 26be8f865a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1683
5 changed files with 28 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue