Serenity Operating System
1#import <DOM/MutationRecord.idl>
2#import <DOM/Node.idl>
3
4[Exposed=Window]
5interface MutationObserver {
6
7 constructor(MutationCallback callback);
8
9 undefined observe(Node target, optional MutationObserverInit options = {});
10 undefined disconnect();
11 sequence<MutationRecord> takeRecords();
12
13};
14
15callback MutationCallback = undefined (sequence<MutationRecord> mutations, MutationObserver observer);
16
17dictionary MutationObserverInit {
18
19 boolean childList = false;
20 boolean attributes;
21 boolean characterData;
22 boolean subtree = false;
23 boolean attributeOldValue;
24 boolean characterDataOldValue;
25 sequence<DOMString> attributeFilter;
26
27};