Explorar o código

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 %!s(int64=23) %!d(string=hai) anos
pai
achega
86047b6757
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
     $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;
 }