The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTML::WidgetValidator - Perl framework for validating various widget HTML snipets

VERSION

This document describes HTML::WidgetValidator version 0.0.3

SYNOPSIS

    use HTML::WidgetValidator;
    my $validator = HTML::WidgetValidator->new;
    my $result  = $validator->validate($html);
    my $code = $result->code;
    my $name = $result->name;

DESCRIPTION

When HTML code is passed to HTML::WidgetValidator, it will analyze the code to see what kind of Widget it is for. It is possible to pre-specify the type of Widget that will be detected (if nothing is specified all included Widget types will be considered).

If the HTML Tag representing the Widget is too long, it is necessary to divide the HTML code up by elements. For example the Yahoo! Weather Information code below is comprised of two scripts, it is necessary to pass along each script separately.

    <script>var CFLwidth = "150";var CFLheight = "322";
    var CFLswfuri = "http://i.yimg.jp/images/weather/blogparts/yj_weather.swf?mapc=4";
    </script>
    <script type="text/javascript" charset="euc-jp"
                src="http://weather.yahoo.co.jp/weather/promo/js/weather.js"></script>

AUTHOR

Takaaki Mizuno <mizuno_takaaki@hatena.ne.jp>

LICENCE AND COPYRIGHT

Copyright (C) Hatena Inc. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.