Packagedom.events
Classpublic class MutationNameEvent
InheritanceMutationNameEvent Inheritance MutationEvent Inheritance Event Inheritance Object

Introduced in: DOM 3 Events 

The MutationNameEvent interface provides specific contextual information associated with Mutation name event types. To create an instance of the MutationNameEvent interface, use the Document.createEvent("MutationNameEvent") method call.

See also

W3C - DOM 3 Events: MutationNameEvent


Public Properties
 PropertyDefined By
 InheritedDOM 2 Events attrChange : Number
[read-only] Indicates the type of change which triggered the DOMAttrModified event.
MutationEvent
 InheritedDOM 2 Events attrName : DOMString
[read-only] Indicates the name of the changed Attr node in a DOMAttrModified event.
MutationEvent
 InheritedDOM 2 Events bubbles : Boolean
[read-only] Used to indicate whether or not an event is a bubbling event.
Event
 InheritedDOM 2 Events cancelable : Boolean
[read-only] Indicates whether the event is cancelable or not.
Event
 InheritedDOM 2 Events currentTarget : EventTarget
[read-only] Identifies the current target for the event, as the event traverses the DOM.
Event
 InheritedDOM 3 Events defaulPrevented : Boolean
[read-only] Used to indicate whether Event.preventDefault() has been called for this event.
Event
 InheritedDOM 2 Events eventPhase : Number
[read-only] Used to indicate which phase of event flow is currently being accomplished.
Event
 InheritedNon-Standard explicitOriginalTarget : nsIDOMEventTarget
[read-only] The explicit original target of the event.
Event
 InheritedNon-Standard isTrusted : Boolean
[read-only] Determines if the event was from the user or script generated.
Event
 InheritedDOM 3 Events namespaceURI : DOMString
[read-only] The namespace URI associated with this event at initialization time, or null if it is unspecified.
Event
 InheritedDOM 2 Events newValue : DOMString
[read-only] Indicates the new value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharacterDataModified events.
MutationEvent
 InheritedNon-Standard originalTarget : *
[read-only] The original target of the event before any retargetings.
Event
  DOM 3 Events prevNamespaceURI : DOMString
[read-only] The previous value of the relatedNode's namespaceURI.
MutationNameEvent
  DOM 3 Events prevNodeName : DOMString
[read-only] The previous value of the relatedNode's nodeName.
MutationNameEvent
 InheritedDOM 2 Events prevValue : DOMString
[read-only] Indicates the previous value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharacterDataModified events.
MutationEvent
 InheritedDOM 2 Events relatedNode : Node
[read-only] is used to identify a secondary node related to a mutation event.
MutationEvent
 InheritedDOM 2 Events target : EventTarget
[read-only] Used to indicate the event target.
Event
 InheritedDOM 2 Events timeStamp : DOMTimeStamp
[read-only] Used to specify the time at which the event was created in milliseconds relative to 1970-01-01T00:00:00Z.
Event
 InheritedDOM 2 Events type : DOMString
[read-only] The local name of the event type.
Event
Public Methods
 MethodDefined By
 Inherited
DOM 2 Events initEvent(typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean):void
Initializes attributes of an Event created through the DocumentEvent.createEvent method.
Event
 Inherited
DOM 3 Events initEventNS(namespaceURIArg:DOMString, typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean):void
Initializes attributes of an Event object.
Event
 Inherited
DOM 2 Events initMutationEvent(typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, relatedNodeArg:XMLNode, prevValueArg:DOMString, newValueArg:DOMString, attrNameArg:DOMString, attrChangeArg:Number):void
Initializes attributes of a MutationEvent object.
MutationEvent
 Inherited
DOM 3 Events initMutationEventNS(namespaceURIArg:DOMString, typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, relatedNodeArg:XMLNode, prevValueArg:DOMString, newValueArg:DOMString, attrNameArg:DOMString, attrChangeArg:Number):void
Initializes attributes of a MutationEvent object.
MutationEvent
  
DOM 3 Events initMutationNameEvent(typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, relatedNodeArg:XMLNode, prevNamespaceURIArg:DOMString, prevNodeNameArg:DOMString):void
Initializes attributes of a MutationNameEvent object.
MutationNameEvent
  
DOM 3 Events initMutationNameEventNS(namespaceURIArg:DOMString, typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, relatedNodeArg:XMLNode, prevNamespaceURIArg:DOMString, prevNodeNameArg:DOMString):void
Initializes attributes of a MutationNameEvent object.
MutationNameEvent
 Inherited
 Obsolete preventBubble():void
Prevents the event from bubbling.
Event
 Inherited
 Obsolete preventCapture():void
This method is deprecated in favor of standard stopPropagation and is removed in Gecko 1.9.
Event
 Inherited
DOM 2 Events preventDefault():void
Cancels the event if it is cancelable, without stopping further propagation of the event.
Event
 Inherited
DOM 3 Events stopImmediatePropogation():void
Prevents other event listeners from being triggered and, unlike Event.stopPropagation() its effect is immediate .
Event
 Inherited
DOM 2 Events stopPropogation():void
Prevents other event listeners from being triggered but its effect is deferred until all event listeners attached on the Event.currentTarget have been triggered .
Event
Public Constants
 ConstantDefined By
 InheritedHTML 4.0 abort : String = abort
[static] Loading of a resource has been aborted.
Event
 InheritedDOM 2 Events ADDITION : Number = 2
[static] The Attr was just added.
MutationEvent
 InheritedDOM 2 Events AT_TARGET : Number = 2
[static] The current event is in the target phase, i.e.
Event
 InheritedDOM 2 Events BUBBLING_PHASE : Number = 3
[static] The current event phase is the bubbling phase.
Event
 InheritedDOM 2 Events CAPTURING_PHASE : Number = 1
[static] The current event phase is the capture phase.
Event
 InheritedHTML 4.0 change : String = change
[static] A control loses the input focus and its value has been modified since gaining focus.
Event
  DOM 3 Events DOMAttributeNameChanged : String = DOMAttributeNameChanged
[static] Occurs after the namespaceURI and/or the nodeName of a Attr node have been modified (e.g., the attribute was renamed using Document.renameNode()).
MutationNameEvent
 InheritedDOM 2 Events DOMAttrModified : String = DOMAttrModified
[static] Occurs after Attr.value has been modified and after an Attr node has been added to or removed from an Element.
MutationEvent
 InheritedDOM 2 Events DOMCharacterDataModified : String = DOMCharacterDataModified
[static] Occurs after CharacterData.data or ProcessingInstruction.data have been modified but the node itself has not been inserted or deleted.
MutationEvent
  DOM 3 Events DOMElementNameChanged : String = DOMElementNameChanged
[static] Occurs after the namespaceURI and/or the nodeName of an Element node have been modified (e.g., the element was renamed using Document.renameNode()).
MutationNameEvent
 InheritedDOM 2 Events DOMNodeInserted : String = DOMNodeInserted
[static] A node has been added as a child of another node or, in case of Attr nodes, has been added to an Element.
MutationEvent
 InheritedDOM 2 Events DOMNodeInsertedIntoDocument : String = DOMNodeInsertedIntoDocument
[static] A node has been inserted into a document, either through direct insertion of the node or insertion of a subtree in which it is contained; Attr nodes are considered part of an Element's subtree.
MutationEvent
 InheritedDOM 2 Events DOMNodeRemoved : String = DOMNodeRemoved
[static] A node is being removed from its parent node or, in case of Attr nodes, removed from its ownerElement.
MutationEvent
 InheritedDOM 2 Events DOMNodeRemovedFromDocument : String = DOMNodeRemovedFromDocument
[static] A node is being removed from a document, either through direct removal of the node or removal of a subtree in which it is contained; Attr nodes are considered part of an Element's subtree.
MutationEvent
 InheritedDOM 2 Events DOMSubtreeModified : String = DOMSubtreeModified
[static] This is a general event for notification of all changes to the document.
MutationEvent
 InheritedHTML 4.0 error : String = error
[static] A resource failed to load, or has been loaded but cannot be interpreted according to its semantics such as an invalid image, a script execution error, or non-well-formed XML.
Event
 InheritedHTML 4.0 load : String = load
[static] The DOM Implementation finishes loading the resource (such as the document) and any dependent resources (such as images, style sheets, or scripts).
Event
 InheritedDOM 2 Events MODIFICATION : Number = 1
[static] The Attr was modified in place.
MutationEvent
 InheritedDOM 2 Events REMOVAL : Number = 3
[static] The Attr was just removed.
MutationEvent
 InheritedHTML 4.0 reset : String = reset
[static] A form, such as a [HTML 4.01] or [XHTML 1.0] form, is reset.
Event
 InheritedHTML 4.0 select : String = select
[static] A user selects some text.
Event
 InheritedHTML 4.0 submit : String = submit
[static] A form, such as a [HTML 4.01] or [XHTML 1.0] form, is submitted.
Event
 InheritedHTML 4.0 unload : String = unload
[static] The DOM implementation removes from the environment the resource (such as the document) or any dependent resources (such as images, style sheets, scripts).
Event
Property Detail
DOM 3 Events prevNamespaceURIproperty
prevNamespaceURI:DOMString  [read-only]

Introduced in: DOM 3 Events 

The previous value of the relatedNode's namespaceURI.


Implementation
    public function get prevNamespaceURI():DOMString

See also

DOM 3 Events prevNodeNameproperty 
prevNodeName:DOMString  [read-only]

Introduced in: DOM 3 Events 

The previous value of the relatedNode's nodeName.


Implementation
    public function get prevNodeName():DOMString

See also

Method Detail
DOM 3 Events initMutationNameEvent()method
public function initMutationNameEvent(typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, relatedNodeArg:XMLNode, prevNamespaceURIArg:DOMString, prevNodeNameArg:DOMString):void

Introduced in: DOM 3 Events 

Initializes attributes of a MutationNameEvent object. This method has the same behavior as MutationEvent.initMutationEvent().

Parameters

typeArg:DOMString — Specifies Event.type, the local name of the event type.
 
canBubbleArg:Boolean — Specifies Event.bubbles. This parameter overrides the intrinsic bubbling behavior of the event.
 
cancelableArg:Boolean — Specifies Event.cancelable. This parameter overrides the intrinsic cancelable behavior of the event.
 
relatedNodeArg:XMLNode — Specifies MutationEvent.relatedNode.
 
prevNamespaceURIArg:DOMString — Specifies MutationNameEvent.prevNamespaceURI. This value may be null.
 
prevNodeNameArg:DOMString — Specifies MutationNameEvent.prevNodeName.

See also

DOM 3 Events initMutationNameEventNS()method 
public function initMutationNameEventNS(namespaceURIArg:DOMString, typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, relatedNodeArg:XMLNode, prevNamespaceURIArg:DOMString, prevNodeNameArg:DOMString):void

Introduced in: DOM 3 Events 

Initializes attributes of a MutationNameEvent object. This method has the same behavior as MutationEvent.initMutationEventNS().

Parameters

namespaceURIArg:DOMString — Specifies Event.namespaceURI, the namespace URI associated with this event, or null if no namespace.
 
typeArg:DOMString — Specifies Event.type, the local name of the event type.
 
canBubbleArg:Boolean — Specifies Event.bubbles. This parameter overrides the intrinsic bubbling behavior of the event.
 
cancelableArg:Boolean — Specifies Event.cancelable. This parameter overrides the intrinsic cancelable behavior of the event.
 
relatedNodeArg:XMLNode — Specifies MutationEvent.relatedNode.
 
prevNamespaceURIArg:DOMString — Specifies MutationNameEvent.prevNamespaceURI. This value may be null.
 
prevNodeNameArg:DOMString — Specifies MutationNameEvent.prevNodeName.

See also

Constant Detail
DOM 3 Events DOMAttributeNameChangedConstant
public static const DOMAttributeNameChanged:String = DOMAttributeNameChanged

Introduced in: DOM 3 Events 

Occurs after the namespaceURI and/or the nodeName of a Attr node have been modified (e.g., the attribute was renamed using Document.renameNode()). The target node of this event is the Element node whose Attr has been renamed.

TitleValue
CancelableNo
BubblesYes
TargetElement
Context infoMutationNameEvent.prevNamespaceURI, and MutationNameEvent.prevNodeName are in use. The value of MutationEvent.relatedNode contains the renamed Attr node.

See also

DOM 3 Events DOMElementNameChangedConstant 
public static const DOMElementNameChanged:String = DOMElementNameChanged

Introduced in: DOM 3 Events 

Occurs after the namespaceURI and/or the nodeName of an Element node have been modified (e.g., the element was renamed using Document.renameNode()). The target node of this event is the renamed Element node.

TitleValue
CancelableNo
BubblesYes
TargetElement
Context infoMutationNameEvent.prevNamespaceURI, and MutationNameEvent.prevNodeName are in use.

See also