Type: Object

Object describing a mutation hook to be registered.



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.


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.


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.