HTML::DOM::Event::Mutation - A Perl class for HTML DOM mutation event objects
# ...
This class provides MutationEvent objects for HTML::DOM, which objects are passed to event handlers for certain event types when they are invoked. It inherits from HTML::DOM::Event.
See also those inherited from HTML::DOM::Event.
These are all read-only and ignore their arguments.
This holds the parent node for DOMNodeInserted and DOMNodeRemoved events, and the Attr node involved for a DOMAttrModified event.
The previous value for DOMAttrModified and DOMCharacterDataModified events.
The new value for the same two event types.
The name of the affected attribute for DOMAttrModified events.
This initialises the event object. See "initEvent" in HTML::DOM::Event for more detail.
Alternative to initMutationEvent that's easier to use:
initMutationEvent
init $event type => $type, propagates_up => 1, cancellable => 1, rel_node => $node, new_value => $foo, prev_value => $bar, attr_name => $name, attr_change_type => HTML::DOM::Event::Mutation::REMOVAL, ;
The following constants are exported upon request, either individually or with the ':all' tag. They indicated the type of change that a DOMAttrModified event represents.
ADDITION
MODIFICATION
REMOVAL
HTML::DOM
HTML::DOM::Event
HTML::DOM::Event::Mouse
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install HTML::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::DOM
CPAN shell
perl -MCPAN -e shell install HTML::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.