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 <jnareb@gmail.com>
<?xml version="1.0" encoding="UTF-8"?>;
}
+ sub DTD {
+ use HTML::Tags;
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+ }
+
sub globbery {
<t/globbery/*>;
}
);
is(
+ join('', HTML::Tags::to_html_string Foo::DTD),
+ '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
+ 'DTD ok'
+);
+
+is(
join(', ', Foo::globbery),
't/globbery/one, t/globbery/two',
'real glob re-installed ok'