MutationHookInfo

Type: Object

Object describing a mutation hook to be registered.

Properties

expectedResultType

Type: Number

The type of data returned by valueQuery, use the static properties of evaluateXPath. It is recommended to set this when using the valueQuery.

Defines the function to respond the events. We recommend usage of the MutationHookXQueryFunctionReference for a better API experience.

selector

Type: XPathTest

The selector specifying the nodes to which to react. Note that this must be in a form of self::para, see Mutation Hooks for more information.

valueQuery

When provided, the hook will only trigger when the result of this query changes for any node matching the selector that remains part of a loaded document.