4
0
Эх сурвалжийг харах

Change DTD to XHTML 1.1 Strict

Christoph Berg 21 жил өмнө
parent
commit
6e9df52e18

+ 1 - 0
docs/Changelog

@@ -6,6 +6,7 @@ pisg (0.67) - ??
      + Added support for multiple channels in config with the same name.
      + Added support for multiple channels in config with the same name.
        Even multiple channel directives for the very same channel are
        Even multiple channel directives for the very same channel are
        supported (closes SF tracker #967404, patch by Torbjörn Svensson).
        supported (closes SF tracker #967404, patch by Torbjörn Svensson).
+     + Change DTD to XHTML 1.1 Strict (suggested by Torbjörn).
    * Documentation:
    * Documentation:
      + Local options override global ones, not vice-versa.
      + Local options override global ones, not vice-versa.
    * Formats:
    * Formats:

+ 2 - 1
modules/Pisg/HTMLGenerator.pm

@@ -226,7 +226,8 @@ sub _htmlheader
     my $title = $self->_template_text('pagetitle1', %hash);
     my $title = $self->_template_text('pagetitle1', %hash);
     if($self->{cfg}->{colorscheme} ne "none") {
     if($self->{cfg}->{colorscheme} ne "none") {
         print OUTPUT <<HTML;
         print OUTPUT <<HTML;
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" 
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html>
 <html>
 <head>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=$self->{cfg}->{charset}" />
 <meta http-equiv="Content-Type" content="text/html; charset=$self->{cfg}->{charset}" />