my ($stylesheet, $favicon);
if ($ENV{HTTP_USER_AGENT}) {
+ my $doctype;
+
+ if ($ENV{'HTTP_USER_AGENT'} =~ m/MSIE\s+\d/) {
+ $main::lxdebug->message(0, "yeah");
+ # Only set the DOCTYPE for Internet Explorer. Other browsers have problems displaying the menu otherwise.
+ $doctype = qq|<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n|;
+ } else {
+ $main::lxdebug->message(0, "nope");
+ }
my $stylesheets = "$self->{stylesheet} $self->{stylesheets}";
}
print qq|Content-Type: text/html; charset=${db_charset};
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
+${doctype}<html>
<head>
<title>$self->{titlebar}</title>
$stylesheet