From: Jakub Narebski Date: Tue, 15 Dec 2009 13:47:36 +0000 (+0100) Subject: t/tags.t: Test that Document Type Declaration (DTD or doctype) works X-Git-Tag: v0.003~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4882e90fd0f1a7231030d354af422a71ba0b6e17;p=catagits%2FWeb-Simple.git t/tags.t: Test that Document Type Declaration (DTD or doctype) works HTML documents are required to start with a Document Type Declaration (informally, a 'doctype'). In browsers, the function of the doctype is to indicate the rendering mode - particularly to avoid the quirks mode. Signed-off-by: Jakub Narebski --- diff --git a/t/tags.t b/t/tags.t index 587bf63..dc67654 100644 --- a/t/tags.t +++ b/t/tags.t @@ -43,6 +43,11 @@ use Test::More qw(no_plan); ; } + sub DTD { + use HTML::Tags; + + } + sub globbery { ; } @@ -87,6 +92,12 @@ is( ); is( + join('', HTML::Tags::to_html_string Foo::DTD), + '', + 'DTD ok' +); + +is( join(', ', Foo::globbery), 't/globbery/one, t/globbery/two', 'real glob re-installed ok'