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)

    • $eventtype (string)

    • $canbubble (boolean)

    • $cancelable (boolean)

    • $node (Mozilla::DOM::Node)

    • $prevval (string)

    • $newval (string)

    • $attrname (string)

    • $attrchange (integer (short))

    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, Scott Lanning

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