Files
serenity/Userland/Libraries/LibWeb/IndexedDB/IDBRequest.idl
Jamie Mansfield ef7d593463 LibWeb: Implement IDBRequest.onerror
(cherry picked from commit 68d84755f4b745351d3d494759d59ba6719b8ad8)
2024-06-26 14:13:20 +02:00

21 lines
601 B
Plaintext

#import <DOM/EventTarget.idl>
// https://w3c.github.io/IndexedDB/#idbrequest
[Exposed=(Window,Worker)]
interface IDBRequest : EventTarget {
[FIXME] readonly attribute any result;
[FIXME] readonly attribute DOMException? error;
[FIXME] readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source;
[FIXME] readonly attribute IDBTransaction? transaction;
[FIXME] readonly attribute IDBRequestReadyState readyState;
// Event handlers:
attribute EventHandler onsuccess;
attribute EventHandler onerror;
};
enum IDBRequestReadyState {
"pending",
"done"
};