
=head1 NAME

HTML::DOM::Element::Body - A Perl class for representing 'body' elements in an HTML DOM tree

=head1 SYNOPSIS

  use HTML::DOM;
  $doc = HTML::DOM->new;
  $elem = $doc->createElement('body');

  $elem->bgColor('white'); # set attribute
  $elem->background;       # get attribute
  $elem->tagName;
  # etc

=head1 DESCRIPTION

This class implements the 'body' element in an HTML::DOM tree. It 
implements the HTMLBodyElement DOM interface and inherits from 
L<HTML::DOM::Element> (q.v.).

=head1 METHODS

In addition to those inherited from HTML::DOM::Element and its 
superclasses, this class implements the following DOM methods:

=over 4

=item aLink

=item background

=item bgColor

=item link

=item text

=item vLink

=back

Each of these returns the corresponding HTML attribute. If you pass an
argument, it will become the new value of the attribute, and the old value
will be returned.

It also overrides L<HTML::DOM::EventTarget>'s C<event_handler> method
to delegate event handlers associated with HTML or DOM attributes with the
window object (more precisely, whatever object is assigned to the
document's L<C<event_parent>|HTML::DOM::EventTarget/event_parent>) instead
of the body element.

=head1 SEE ALSO

L<HTML::DOM>

L<HTML::DOM::Element>
