Methods for `YAPE::HTML'
* `use YAPE::HTML;'
* `use YAPE::HTML qw( MyExt::Mod );'
If supplied no arguments, the module is loaded normally, and
the node classes are given the proper inheritence (from
`YAPE::HTML::Element'). If you supply a module (or list of
modules), `import' will automatically include them (if
needed) and set up *their* node classes with the proper
inheritence -- that is, it will append `YAPE::HTML' to
`@MyExt::Mod::ISA', and `YAPE::HTML::xxx' to each node
class's `@ISA' (where `xxx' is the name of the specific node
class).
It also copies the `%OPEN' and `%EMPTY' hashes, as well as
the `OPEN()' and `EMPTY()' functions, into the `MyExt::Mod'
namespace. This process is designed to save you from having
to place `@ISA' assignments all over the place.
It also copies the `%SSI' hash. This hash is not suggested
to be altered, and therefore it does not have any public
interface (you have to fiddle with it yourself). It exists
to ensure an SSI is valid.
package MyExt::Mod;
use YAPE::HTML 'MyExt::Mod';
# @MyExt::Mod::ISA = 'YAPE::HTML'
# @MyExt::Mod::text::ISA = 'YAPE::HTML::text'
# ...
# being rather strict with the tags
%OPEN = ();
%EMPTY = ();
* `my $p = YAPE::HTML->new($HTML, $strict);'
Creates a `YAPE::HTML' object, using the contents of the
`$HTML' string as its HTML to parse. The optional second
argument determines whether this parser instance will demand
strict comment parsing and require all tags to be closed
with a closing tag or a `/' at the end of the tag (`