MutationObserver Class
A MutationObserver object can be used to observe mutations to the tree of Node.
Inheritance Hierarchy
SystemObject
  Aspose.Html.DomDOMObject
    Aspose.Html.Dom.MutationsMutationObserver

Namespace: Aspose.Html.Dom.Mutations
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.1
Syntax
public class MutationObserver : DOMObject

The MutationObserver type exposes the following members.

Constructors
  NameDescription
Public methodMutationObserver
Constructs a MutationObserver object and sets its MutationCallback to callback. The callback is invoked with a list of MutationRecord objects as first argument and the constructed MutationObserver object as second argument. It is invoked after nodes registered with the [!:Observe(Node, IMutationObserverInit)] method, are mutated.
Methods
  NameDescription
Public methodDisconnect
Stops observer from observing any mutations. Until the observe() method is used again, observer’s callback will not be invoked.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodObserve(Node)
Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). The options argument allows for setting mutation observation options via object members.
Public methodObserve(Node, MutationObserverInit)
Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). The options argument allows for setting mutation observation options via object members.
Public methodTakeRecords
The method returns a copy of the record queue and then empty the record queue.
Public methodToString (Inherited from Object.)
See Also