Skip to content

MutationObserver

Generated from idl/dom.webidl when the site was built at 7aa23e2.

MutationObserver is an interface in idl/dom.webidl, exposed in Window. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
MutationObserver Widely available Partial 84% 138 of 164 subtests pass 5
constructor
constructor(MutationCallback callback);
int32_t niso_mutation_observer_new(niso_dom* dom, niso_mutation_callback_fn callback_fn, void* callback_userdata, niso_drop_fn callback_drop, niso_handle* out);
operation
undefined observe(Node target, optional MutationObserverInit options = {});
int32_t niso_mutation_observer_observe(niso_dom* dom, niso_handle self, niso_handle target, const niso_mutation_observer_init* options);
operation
undefined disconnect();
int32_t niso_mutation_observer_disconnect(niso_dom* dom, niso_handle self);
operation
sequence<MutationRecord> takeRecords();
int32_t niso_mutation_observer_take_records(niso_dom* dom, niso_handle self, niso_handles* out);