1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

LibWeb: Introduce Mutation{Record,Observer} and observer microtasks

This commit is contained in:
Luke Wilde 2022-07-11 16:37:51 +01:00 committed by Andreas Kling
parent 116a7b74fe
commit c9ba5531e0
15 changed files with 531 additions and 0 deletions

View file

@ -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;
};