@JsType(isNative=true, namespace="<global>") public interface MutationObserverInit
MutationObserver.observe(BaseNode, MutationObserverInit)
method.Modifier and Type | Method and Description |
---|---|
void |
setAttributes(boolean attributes)
Set to true to watch for changes to the value of attributes on the node or nodes being monitored.
The default value is false. |
void |
setCharacterData(boolean characterData)
Set to true to monitor the specified target node or subtree for changes to the character data contained within the node or nodes.
No default value. |
void |
setCharacterDataOldValue(boolean characterDataOldValue)
Set to true to record the previous value of a node's text whenever the text changes on nodes being monitored.
No default value. |
void |
setChildList(boolean childList)
Set to true to monitor the target node (and, if subtree is true, its descendants) for the addition of new child nodes or removal of existing child nodes.
The default is false. |
void |
setSubtree(boolean subtree)
Set to true to extend monitoring to the entire subtree of nodes rooted at target.
The default value is false. |
@JsProperty void setAttributes(boolean attributes)
attributes
- true to watch for changes to the value of attributes on the node or nodes being monitored@JsProperty void setCharacterData(boolean characterData)
characterData
- true to monitor the specified target node or subtree for changes to the character data contained within the node or nodes@JsProperty void setCharacterDataOldValue(boolean characterDataOldValue)
characterDataOldValue
- true to record the previous value of a node's text whenever the text changes on nodes being monitored@JsProperty void setChildList(boolean childList)
childList
- true to monitor the target node (and, if subtree is true, its descendants) for the addition of new child nodes or removal of existing child nodes@JsProperty void setSubtree(boolean subtree)
subtree
- true to extend monitoring to the entire subtree of nodes rooted at target