2022-07-11 18:37:51 +03:00
|
|
|
#import <DOM/MutationRecord.idl>
|
|
|
|
#import <DOM/Node.idl>
|
|
|
|
|
2023-10-25 18:27:19 +03:00
|
|
|
// https://dom.spec.whatwg.org/#interface-mutationobserver
|
2023-09-06 05:28:15 +03:00
|
|
|
[Exposed=Window]
|
2022-07-11 18:37:51 +03:00
|
|
|
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;
|
|
|
|
|
|
|
|
};
|