Enum stdweb::web::MutationRecord
[−]
[src]
pub enum MutationRecord { Attribute { target: Node, name: String, namespace: Option<String>, old_value: Option<String>, }, CharacterData { target: Node, old_data: Option<String>, }, ChildList { target: Node, inserted_nodes: NodeList, removed_nodes: NodeList, previous_sibling: Option<Node>, next_sibling: Option<Node>, }, }
Contains information about an individual change to the DOM.
It is passed to the MutationObserver
's callback.
Variants
Attribute
One of the target's attributes was changed.
Fields of Attribute
target: Node | The |
name: String | The name of the changed attribute. |
namespace: Option<String> | The namespace of the changed attribute. |
old_value: Option<String> | The value of the changed attribute before the change. |
CharacterData
The target's data was changed.
Fields of CharacterData
target: Node | The |
old_data: Option<String> | The data of the target before the change. |
ChildList
The children of the target were changed.
Fields of ChildList
target: Node | The |
inserted_nodes: NodeList | The nodes which were inserted. Will be an empty |
removed_nodes: NodeList | The nodes which were removed. Will be an empty |
previous_sibling: Option<Node> | The previous sibling of the inserted or removed nodes, or |
next_sibling: Option<Node> | The next sibling of the inserted or removed nodes, or |
Trait Implementations
impl Debug for MutationRecord
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for MutationRecord
[src]
fn clone(&self) -> MutationRecord
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more