Scott Lanning > Mozilla-DOM-0.23 > Mozilla::DOM::MutationEvent

Download:
Mozilla-DOM-0.23.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  5
View/Report Bugs
Source  

NAME ^

Mozilla::DOM::MutationEvent

DESCRIPTION ^

Mozilla::DOM::MutationEvent is a wrapper around an instance of Mozilla's nsIDOMMutationEvent interface. This inherits from UIEvent.

The following constants are available to be compared with GetAttrChange. You can access these either through the event object, export them all with use Mozilla::DOM::MutationEvent qw(:changes), or export them individually.

MODIFICATION
ADDITION
REMOVAL

CLASS METHODS ^

$iid = Mozilla::DOM::MutationEvent->GetIID()

Pass this to QueryInterface.

METHODS ^

$mutationevent->GetAttrChange()

$name = $mutationevent->GetAttrName()

$value = $mutationevent->GetNewValue()

$value = $mutationevent->GetPrevValue()

$node = $mutationevent->GetRelatedNode()

$event->InitMutationEvent($eventType, $canbubble, $cancelable, $node, $prevValue, $newValue, $attrName, $attrChange)

See Event::InitEvent for more information. This method is basically the same as InitEvent, but with five extra arguments. (XXX: add docs for args)

SEE ALSO ^

Mozilla::DOM

COPYRIGHT ^

Copyright (C) 2005-2007, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.

syntax highlighting: