Преглед изворни кода

Since <!DOCTYPE may _not_ be closed, it is a style parameter
(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>

teepe пре 23 година
родитељ
комит
86047b6757
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      functions/page_header.php

+ 2 - 2
functions/page_header.php

@@ -299,10 +299,10 @@ function initPage () {
 
 
     global $theme_css, $custom_css, $base_uri;
     global $theme_css, $custom_css, $base_uri;
     $page = new html();
     $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 = new html('html');
     $html->addChild('HTML');
     $html->addChild('HTML');
+/* shouldn't the last two lines be just this line?    $page->addChild('HTML'); */
     return $page;
     return $page;
 }
 }