mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +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
10
Tests/LibWeb/Text/input/HTML/onreadystatechange.html
Normal file
10
Tests/LibWeb/Text/input/HTML/onreadystatechange.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
let readyStates = []
|
||||
document.onreadystatechange = function() {
|
||||
readyStates.push(document.readyState);
|
||||
}
|
||||
test(() => {
|
||||
println(readyStates);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue