The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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". XXX: This is currently buggy, because you have to call them as methods on the mutation event object. DEPRECATED: a little premature to deprecate, not having an alternative (aside from using the numbers directly), but I really don't like how they're currently implemented.

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 34:

=end comment without matching =begin. (Stack: [empty])