Object: MutationEvent
The MutationEvent object extends the Event object and represents an event generated when the structure of document is modified. To create an instance of a MutationEvent, you must invoke Document.createEvent() with an input parameter of "MutationEvent".
To improve the performance of the browser, support for mutation events has been removed in in BlackBerry 6.
Mutation event types
|
Event type |
Bubbles |
Cancelable |
Description |
|---|---|---|---|
|
DOMAttrModified |
yes |
yes |
Occurs when Attr.value has been modified on a node, or when an Attr node has been added or removed. The EventTarget is the Element node to which the Attr is attached. This event type includes the following context information: |
|
DOMCharacterDataModified |
yes |
no |
Occurs when CharacterData.data or ProcessingInstruction.data have been modified on a node. The EventTarget is the CharacterData node or ProcessingInstruction node. This event type includes the following context information: |
|
DOMContentLoaded |
no |
no |
Occurs when the BlackBerry® Browser has completely parsed the document, before any onload events are triggered. |
|
DOMNodeInserted |
yes |
no |
Occurs when a node has been added as a child of another node, or if an Attr node has been added to an Element node. This event type includes the following context information: |
|
DOMNodeInsertedIntoDocument |
yes |
no |
Occurs when a node has been inserted into the document, either directly or as part of a subtree. |
|
DOMNodeRemoved |
yes |
no |
Occurs when a node has been removed from another node, or if an Attr node has been removed from its Element node. This event type includes the following context information: |
|
DOMNodeRemovedFromDocument |
yes |
no |
Occurs when a node has been removed from the document, either directly or as part of a subtree. |
|
DOMSubtreeModified |
yes |
no |
Occurs when any modification has been made to the document, encompassing all other MutationEvent types. |
MutationEvent properties
|
Property name |
Type |
Description |
Status |
Availability |
|---|---|---|---|---|
|
unsigned short |
Returns the type of change that triggered the DOMAttrModified event. This property can return one of the following values:
|
read only |
4.6 or later |
|
|
DOMString |
Returns the name of the changed Attr node in a DOMAttrModified event. |
read only |
4.6 or later |
|
|
DOMString |
Returns the new value of:
|
read only |
4.6 or later |
|
|
DOMString |
Returns the previous value of:
|
read only |
4.6 or later |
|
|
Returns the secondary node affected by a mutation event. |
read only |
4.6 or later |
|
Property name |
Type |
Description |
Status |
Support level |
Availability |
|---|---|---|---|---|---|
|
unsigned short |
Returns the type of change that triggered the DOMAttrModified event. This property can return one of the following values: |
read only |
DOM 2 Events |
4.6 or later |
|
|
DOMString |
Returns the name of the changed Attr node in a DOMAttrModified event. |
read only |
DOM 2 Events |
4.6 or later |
|
|
DOMString |
Returns the new value of:
|
read only |
DOM 2 Events |
4.6 or later |
|
|
DOMString |
Returns the previous value of:
|
read only |
DOM 2 Events |
4.6 or later |
|
|
Returns the secondary node affected by a mutation event. |
read only |
DOM 2 Events |
4.6 or later |