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:
parent
116a7b74fe
commit
c9ba5531e0
15 changed files with 531 additions and 0 deletions
27
Userland/Libraries/LibWeb/DOM/MutationObserver.idl
Normal file
27
Userland/Libraries/LibWeb/DOM/MutationObserver.idl
Normal 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;
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue