Interface

MutationObserver

MutationObserver

Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification.

View Source js/lib.dom.d.ts, line 5035

Members

void

# disconnect

Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.

View Source js/lib.dom.d.ts, line 5038

void

# observe

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.

View Source js/lib.dom.d.ts, line 5043

Array

# takeRecords

Empties the record queue and returns what was in there.

View Source js/lib.dom.d.ts, line 5050