mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Mutation Observer API
This commit is contained in:
parent
fa251ec96b
commit
3ca89204ff
15 changed files with 432 additions and 180 deletions
|
@ -9,7 +9,8 @@
|
|||
// https://dom.spec.whatwg.org/#mutationobserver
|
||||
[Pref="dom.mutation_observer.enabled", Constructor(MutationCallback callback)]
|
||||
interface MutationObserver {
|
||||
//void observe(Node target, optional MutationObserverInit options);
|
||||
[Throws]
|
||||
void observe(Node target, optional MutationObserverInit options);
|
||||
//void disconnect();
|
||||
//sequence<MutationRecord> takeRecords();
|
||||
};
|
||||
|
|
|
@ -12,13 +12,13 @@ interface MutationRecord {
|
|||
readonly attribute DOMString type;
|
||||
[SameObject]
|
||||
readonly attribute Node target;
|
||||
//[SameObject]
|
||||
//readonly attribute NodeList addedNodes;
|
||||
//[SameObject]
|
||||
//readonly attribute NodeList removedNodes;
|
||||
//readonly attribute Node? previousSibling;
|
||||
//readonly attribute Node? nextSibling;
|
||||
//readonly attribute DOMString? attributeName;
|
||||
//readonly attribute DOMString? attributeNamespace;
|
||||
//readonly attribute DOMString? oldValue;
|
||||
[SameObject]
|
||||
readonly attribute NodeList addedNodes;
|
||||
[SameObject]
|
||||
readonly attribute NodeList removedNodes;
|
||||
readonly attribute Node? previousSibling;
|
||||
readonly attribute Node? nextSibling;
|
||||
readonly attribute DOMString? attributeName;
|
||||
readonly attribute DOMString? attributeNamespace;
|
||||
readonly attribute DOMString? oldValue;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue