Jeff Pinyan > YAPE-HTML > YAPE::HTML::Element

Download:
YAPE-HTML-1.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.10   Source  

NAME ^

YAPE::HTML::Element - sub-classes for YAPE::HTML elements

SYNOPSIS ^

  use YAPE::HTML 'MyExt::Mod';
  # this sets up inheritence in MyExt::Mod
  # see YAPE::HTML documentation

YAPE MODULES ^

The YAPE hierarchy of modules is an attempt at a unified means of parsing and extracting content. It attempts to maintain a generic interface, to promote simplicity and reusability. The API is powerful, yet simple. The modules do tokenization (which can be intercepted) and build trees, so that extraction of specific nodes is doable.

DESCRIPTION ^

This module provides the classes for the YAPE::HTML objects. The base class for these objects is YAPE::HTML::Element; the four object classes are YAPE::HTML::opentag, YAPE::HTML::closetag, YAPE::HTML::text, and YAPE::HTML::comment.

Methods for YAPE::HTML::Element

This class contains fallback methods for the other classes.

Methods for YAPE::HTML::opentag

This class represents tags. Object has the following methods:

Methods for YAPE::HTML::closetag

This class represents closing tags. Object has the following methods:

Methods for YAPE::HTML::text

This class represents blocks of plain text. Objects have the following methods:

Methods for YAPE::HTML::comment

This class represents comments. Objects have the following methods:

Methods for YAPE::HTML::dtd

This class represents <!DOCTYPE> tags. Objects have the following methods:

Methods for YAPE::HTML::pi

This class represents process instruction tags. Objects have the following methods:

Methods for YAPE::HTML::ssi

This class represents server-side includes. Objects have the following methods:

CAVEATS ^

The <script> and <xmp> tags are given special treatment. When they are encountered, all text up to the first occurrence of the appropriate closing tag is taken as plain text.

Tag attributes are displayed in the default sort() order.

TO DO ^

This is a listing of things to add to future versions of this module.

BUGS ^

Following is a list of known or reported bugs.

SUPPORT ^

Visit YAPE's web site at http://www.pobox.com/~japhy/YAPE/.

SEE ALSO ^

The YAPE::HTML::Element documentation, for information on the node classes.

AUTHOR ^

  Jeff "japhy" Pinyan
  CPAN ID: PINYAN
  japhy@pobox.com
  http://www.pobox.com/~japhy/
syntax highlighting: