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.
        Even multiple channel directives for the very same channel are
        supported (closes SF tracker #967404, patch by Torbjörn Svensson).
+     + Change DTD to XHTML 1.1 Strict (suggested by Torbjörn).
    * Documentation:
      + Local options override global ones, not vice-versa.
    * Formats:

+ 2 - 1
modules/Pisg/HTMLGenerator.pm

@@ -226,7 +226,8 @@ sub _htmlheader
     my $title = $self->_template_text('pagetitle1', %hash);
     if($self->{cfg}->{colorscheme} ne "none") {
         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>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=$self->{cfg}->{charset}" />