Whatpm::ContentChecker - DOM Conformance Checker
use Whatpm::ContentChecker;
Whatpm::ContentChecker->check_document ($doc, sub {
my %arg = @_;
warn get_node_path ($arg{node}), ": ",
($arg{level} || "Error"), ": ",
$arg{type}, "\n";
});
Whatpm::ContentChecker->check_element ($doc, sub {
my %arg = @_;
warn get_node_path ($arg{node}), ": ",
($arg{level} || "Error"), ": ",
$arg{type}, "\n";
});
The Whatpm::ContentChecker Perl module contains two methods
to validate DOM tree for its conformance to the markup language
in use.
This module is part of Whatpm, Perl Modules for Web Hypertext Application Technologies, which is a subproject of manakai.
This module contains two static methods:
CODE is invoked with named arguments same
as ones for the method check_element.
CODE
is invoked with named arguments:
undef)
This conformance checker is work in progress; it might not be able to detect all the errors in the DOM tree, and it might detect an error for a node that is conforming in fact.
the Whatpm::ContentChecker::Atom manpage
the Whatpm::ContentChecker::HTML manpage
<http://suika.fam.cx/gate/2005/sw/Whatpm%20Error%20Types>
Wakaba <w@suika.fam.cx>
Copyright 2007 Wakaba <w@suika.fam.cx>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.