Class MutationRecord
Namespace: Aspose.Html.Dom.Mutations
Assembly: Aspose.HTML.dll (25.2.0)
A MutationRecord represents an individual DOM mutation. It is the object that is passed to Aspose.Html.Dom.Mutations.MutationObserver’s Aspose.Html.Dom.Mutations.MutationCallback.
[ComVisible(true)]
[DOMName("MutationRecord")]
[DOMObject]
public class MutationRecord : DOMObject, INotifyPropertyChanged
Inheritance
object ← DOMObject ← MutationRecord
Implements
Inherited Members
DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
AddedNodes
Return the nodes added.
[DOMName("addedNodes")]
public NodeList AddedNodes { get; }
Property Value
AttributeName
Returns the local name of the changed attribute, and null otherwise.
[DOMName("attributeName")]
public string AttributeName { get; }
Property Value
AttributeNamespace
Returns the namespace of the changed attribute, and null otherwise.
[DOMName("attributeNamespace")]
public string AttributeNamespace { get; }
Property Value
NextSibling
Return the next sibling of the added or removed nodes, or null.
[DOMName("nextSibling")]
public Node NextSibling { get; }
Property Value
OldValue
The return value depends on 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")]
public string OldValue { get; }
Property Value
PreviousSibling
Returns the previous sibling of the added or removed nodes, or null.
[DOMName("previousSibling")]
public Node PreviousSibling { get; }
Property Value
RemovedNodes
Return the nodes removed.
[DOMName("removedNodes")]
public NodeList RemovedNodes { get; }
Property Value
Target
Returns 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")]
public Node Target { get; }
Property Value
Type
Returns “attributes” if it 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")]
public string Type { get; }