Interface IMutationRecord
- Namespace
- AngleSharp.Dom
- Assembly
- AngleSharp.dll
MutationRecord defines an interface that will be passed to the observer's callback.
[DomName("MutationRecord")]
public interface IMutationRecord
- Extension Methods
Properties
Added
Gets the nodes added, or null.
[DomName("addedNodes")]
INodeList? Added { get; }
Property Value
AttributeName
Gets the local name of the changed attribute, or null.
[DomName("attributeName")]
string? AttributeName { get; }
Property Value
AttributeNamespace
Gets the namespace of the changed attribute, or null.
[DomName("attributeNamespace")]
string? AttributeNamespace { get; }
Property Value
NextSibling
Gets the next sibling of the added or removed nodes, or null.
[DomName("nextSibling")]
INode? NextSibling { get; }
Property Value
PreviousSibling
Gets the previous sibling of the added or removed nodes, or null.
[DomName("previousSibling")]
INode? PreviousSibling { get; }
Property Value
PreviousValue
Gets a string depending on the type. For attributes, it is the value of the changed attribute before the change. For characterData, it is the data of the changed node before the change. For childList, it is null.
[DomName("oldValue")]
string? PreviousValue { get; }
Property Value
Removed
Gets the nodes removed, or null.
[DomName("removedNodes")]
INodeList? Removed { get; }
Property Value
Target
Gets the node the mutation affected, depending on the type. For attributes, it is the Element whose attribute changed. For CharacterData, it is the CharacterData node. For ChildList, it is the node whose children changed.
[DomName("target")]
INode Target { get; }
Property Value
Type
Gets attributes if the mutation was an attribute mutation, characterData if it was a mutation to a CharacterData node, and childList if it was a mutation to the tree of nodes.
[DomName("type")]
string Type { get; }