GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::HTML::TIDY (3)

.ds Aq ’

NAME

Test::HTML::Tidy - Test::More-style wrapper around HTML::Tidy

CONTENTS

VERSION

Version 1.28



    $Header: /home/cvs/test-html-tidy/Tidy.pm,v 1.4 2004/02/26 06:12:36 andy Exp $



SYNOPSIS



    use Test::HTML::Tidy tests => 4;

    my $page = build_a_web_page();
    html_tidy_ok( $page, Built page properly );



DESCRIPTION

Handy way to check that HTML is valid, according to HTML::Tidy. It is built with Test::Builder and plays happily with Test::More and friends.

If you are not already familiar with Test::More now would be the time to go take a look.

EXPORT

html_tidy_ok

html_tidy_ok( [$tidy, ] CW$html, CW$name )

Checks to see if $html contains valid HTML. $html being blank is OK. $html being undef is not.

If you pass an HTML::Tidy object, html_tidy_ok() will use that for its settings. The $html will get passed through $tidy.



    my $tidy = new HTML::Tidy;
    $tidy->ignore( type => TIDY_WARNING );
    html_tidy_ok( $tidy, $content, "Web page passes without errors" );



Otherwise, html_tidy_ok will use the default rules.



    html_tidy_ok( $content, "Web page passes ALL tests" );



Note that if you pass in your own HTML::Tidy object, html_tidy_ok() will clear its errors before using it.

Bugs

Please report any bugs or feature requests to bug-test-html-tidy@rt.cpan.org, or through the web interface at <http://rt.cpan.org>. I will be notified, and then you’ll automatically be notified of progress on your bug as I make changes.

Author

Andy Lester, <andy@petdance.com>

Copyright & License

Copyright 2004 Andy Lester, All Rights Reserved.

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

Please note that these modules are not products of or supported by the employers of the various contributors to the code.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TIDY (3) 2004-02-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.