Since <!DOCTYPE may _not_ be closed, it is a style parameter
authorteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 14 Jul 2002 15:28:55 +0000 (15:28 +0000)
committerteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 14 Jul 2002 15:28:55 +0000 (15:28 +0000)
(when talking in the language of html.class)

With this change, there is no </!DOCTYPE tag, which is not only more elegant, but also allows the pages to validate :-)

Marc, Could you look into my comments on the addChild('HTML') issue?
I assume you want the doc to look like this, right?

<!DOCTYPE blah>
  <html>
    <head>
      blah
    </head>
    <body>
      blah
    </body>
  </html>

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3097 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index eaec2fe7d216a7626a5bbdce24271b9cd6dc91f7..59efe1ef96c6200f0d1516c36260b185cc3587c1 100644 (file)
@@ -299,10 +299,10 @@ function initPage () {
 
     global $theme_css, $custom_css, $base_uri;
     $page = new html();
-    $page->addChild('!DOCTYPE','','','','',
-       array('HTML','PUBLIC', '"-//W3C//DTD HTML 4.0 Transitional//EN"'));
+    $page->addChild('','',array('!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"' => false),'','','');
     $html = new html('html');
     $html->addChild('HTML');
+/* shouldn't the last two lines be just this line?    $page->addChild('HTML'); */
     return $page;
 }