summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/MutationObserver.idl
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-07-11 16:37:51 +0100
committerAndreas Kling <kling@serenityos.org>2022-07-11 22:35:08 +0200
commitc9ba5531e0e0985408dbc0905263ce3a38e1ad20 (patch)
tree5ac20a3c3f96392b402a6f95024ad12ddb0fbf8b /Userland/Libraries/LibWeb/DOM/MutationObserver.idl
parent116a7b74feef6e261b0c8c1dedffacb5a0d7e047 (diff)
downloadserenity-c9ba5531e0e0985408dbc0905263ce3a38e1ad20.zip
LibWeb: Introduce Mutation{Record,Observer} and observer microtasks
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/MutationObserver.idl')
-rw-r--r--Userland/Libraries/LibWeb/DOM/MutationObserver.idl27
1 files changed, 27 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/MutationObserver.idl b/Userland/Libraries/LibWeb/DOM/MutationObserver.idl
new file mode 100644
index 0000000000..3e24042199
--- /dev/null
+++ b/Userland/Libraries/LibWeb/DOM/MutationObserver.idl
@@ -0,0 +1,27 @@
+#import <DOM/MutationRecord.idl>
+#import <DOM/Node.idl>
+
+[Exposed=Window]
+interface MutationObserver {
+
+ constructor(MutationCallback callback);
+
+ undefined observe(Node target, optional MutationObserverInit options = {});
+ undefined disconnect();
+ sequence<MutationRecord> takeRecords();
+
+};
+
+callback MutationCallback = undefined (sequence<MutationRecord> mutations, MutationObserver observer);
+
+dictionary MutationObserverInit {
+
+ boolean childList = false;
+ boolean attributes;
+ boolean characterData;
+ boolean subtree = false;
+ boolean attributeOldValue;
+ boolean characterDataOldValue;
+ sequence<DOMString> attributeFilter;
+
+};