Author: mike
Date: 2010-12-28 20:00:52 -0800 (Tue, 28 Dec 2010)
New Revision: 586
Log:
Fix DOCTYPE and remove XHTML />'s from output.


Modified:
   trunk/phplib/html.php

Modified: trunk/phplib/html.php
===================================================================
--- trunk/phplib/html.php       2010-12-29 03:56:18 UTC (rev 585)
+++ trunk/phplib/html.php       2010-12-29 04:00:52 UTC (rev 586)
@@ -149,7 +149,7 @@
   header("Cache-Control: no-cache");
 
   print("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" "
-       ."\"http://www.w3.org/TR/REC-html40/loose.dtd\";>\n");
+       ."\"http://www.w3.org/TR/html4/loose.dtd\";>\n");
   print("<html>\n");
 //  print("<!-- HTTP_USER_AGENT='$_SERVER[HTTP_USER_AGENT]' -->\n");
   print("<head>\n");
@@ -180,18 +180,18 @@
   }
 
   print("  <title>$html_title Fast Light Toolkit (FLTK)</title>\n"
-       ."  <meta http-equiv='Pragma' content='no-cache'/>\n"
+       ."  <meta http-equiv='Pragma' content='no-cache'>\n"
        ."  <meta http-equiv='Content-Type' content='text/html; "
-       ."charset=utf-8'/>\n"
-       ."  <link rel='stylesheet' type='text/css' href='${path}fltk.css'/>\n"
+       ."charset=utf-8'>\n"
+       ."  <link rel='stylesheet' type='text/css' href='${path}fltk.css'>\n"
        ."  <link rel='alternate' title='FLTK RSS' "
-       ."type='application/rss+xml' href='${path}index.rss'/>\n"
+       ."type='application/rss+xml' href='${path}index.rss'>\n"
        ."  <link rel='shortcut icon' href='${path}favicon.ico' "
-       ."type='image/x-icon'/>\n");
+       ."type='image/x-icon'>\n");
 
   // If refresh URL is specified, add the META tag...
   if ($refresh != "")
-    print("  <meta http-equiv='refresh' content='3; $refresh'/>\n");
+    print("  <meta http-equiv='refresh' content='3; $refresh'>\n");
 
   if ($html_show_all)
   {
@@ -204,7 +204,7 @@
     while (list($key, $val) = each($html_keywords))
       print(",$val");
 
-    print("'/>\n");
+    print("'>\n");
   }
 
   if ($javascript != "")
@@ -232,19 +232,19 @@
         ."<tr class='header'>"
         ."<td valign='top' width='15' rowspan='2'>"
         ."<a href='${path}index.php'><img src='${path}images/top-left.gif' "
-        ."width='15' height='70' border='0' alt=''/></a>"
+        ."width='15' height='70' border='0' alt=''></a>"
         ."</td>"
         ."<td valign='top' width='224' rowspan='2'>"
         ."<a href='${path}index.php'><img src='${path}images/top-middle.gif' "
-        ."width='224' height='70' border='0' alt=''/></a>"
+        ."width='224' height='70' border='0' alt=''></a>"
         ."</td>"
         ."<td width='100%' height='40'><$heading>$page_title</$heading></td>"
         ."<td align='right' nowrap><form method='GET' 
action='${path}search.php'>"
-        ."<input type='text' name='Q' size='10'/>"
-        ."<input type='submit' value='Search'/>&nbsp;&nbsp;&nbsp;"
+        ."<input type='text' name='Q' size='10'>"
+        ."<input type='submit' value='Search'>&nbsp;&nbsp;&nbsp;"
         ."</form></td>"
         ."<td align='right' valign='top' width='15' rowspan='2'>"
-        ."<img src='${path}images/top-right.gif' width='4' height='4' alt=''/>"
+        ."<img src='${path}images/top-right.gif' width='4' height='4' alt=''>"
         ."</td>"
         ."</tr>\n");
 
@@ -277,9 +277,9 @@
 
       print("sel' href='$url'>"
            ."<img src='${path}images/tab-left.gif' width='4' height='4' "
-          ."align='top' border='0' alt=''/>&nbsp;$html&nbsp;"
+          ."align='top' border='0' alt=''>&nbsp;$html&nbsp;"
           ."<img src='${path}images/tab-right.gif' width='4' height='4' "
-          ."align='top' border='0' alt=''/></a>&nbsp; ");
+          ."align='top' border='0' alt=''></a>&nbsp; ");
     }
 
     if ($LOGIN_USER)
@@ -291,9 +291,9 @@
 
       print("sel' href='${path}account.php'>"
            ."<img src='${path}images/tab-left.gif' width='4' height='4' "
-          ."align='top' border='0' alt=''/>&nbsp;My&nbsp;Account&nbsp;"
+          ."align='top' border='0' alt=''>&nbsp;My&nbsp;Account&nbsp;"
           ."<img src='${path}images/tab-right.gif' "
-          ."width='4' height='4' align='top' border='0' alt=''/></a>");
+          ."width='4' height='4' align='top' border='0' alt=''></a>");
     }
     else
     {
@@ -313,9 +313,9 @@
 
       print("sel' href='${path}login.php'>"
            ."<img src='${path}images/tab-left.gif' width='4' height='4' "
-          ."align='top' border='0' alt=''/>&nbsp;Login&nbsp;"
+          ."align='top' border='0' alt=''>&nbsp;Login&nbsp;"
           ."<img src='${path}images/tab-right.gif' width='4' height='4' "
-          ."align='top' border='0' alt=''/></a>");
+          ."align='top' border='0' alt=''></a>");
     }
 
     print("</td>"
@@ -391,17 +391,17 @@
     print("<tr class='page'><td colspan='5'>&nbsp;</td></tr>\n");
     print("<tr class='header'>"
         ."<td valign='bottom' width='15'><img 
src='${html_path}images/bottom-left.gif' "
-        ."width='4' height='4' alt=''/></td>"
-        ."<td colspan='3' width='100%'><small> <br />"
+        ."width='4' height='4' alt=''></td>"
+        ."<td colspan='3' width='100%'><small> <br>"
         ."Comments are owned by the poster. All other content is copyright "
-        ."1998-2008 by Bill Spitzak and others. This project is hosted by "
+        ."1998-2010 by Bill Spitzak and others. This project is hosted by "
         ."<a href='http://www.easysw.com/'>Easy Software Products</a>. "
         ."Please report site problems to "
         ."'<a href='mailto:[email protected]'>[email protected]</a>'."
-        ."<br />&nbsp;</small></td>"
+        ."<br>&nbsp;</small></td>"
         ."<td align='right' valign='bottom' width='15'>"
         ."<img src='${html_path}images/bottom-right.gif' width='4' height='4' "
-        ."alt=''/></td>"
+        ."alt=''></td>"
         ."</tr>\n");
     print("</table>\n");
   }
@@ -499,7 +499,7 @@
          ."summary=''>"
         ."<tr class='header'><th align='left' valign='top'>"
         ."<img src='${html_path}images/hdr-top-left.gif' width='4' height='4' "
-        ."alt=''/></th>");
+        ."alt=''></th>");
   else
     print("<br><table border='1' cellpadding='5' cellspacing='0' width='100%' "
          ."summary=''>"
@@ -521,7 +521,7 @@
   if ($html_show_all)
     print("<th align='right' valign='top'>"
         ."<img src='${html_path}images/hdr-top-right.gif' "
-        ."width='4' height='4' alt=''/></th></tr>\n");
+        ."width='4' height='4' alt=''></th></tr>\n");
   else
     print("</tr>\n");
 }
@@ -539,10 +539,10 @@
   if ($html_show_all)
     print("<tr class='header'><th align='left' valign='bottom'>"
         ."<img src='${html_path}images/hdr-bottom-left.gif' width='4' 
height='4' "
-        ."alt=''/></th>"
+        ."alt=''></th>"
         ."<th colspan='$html_cols'>&nbsp;</th>"
         ."<th align='right' valign='bottom'><img 
src='${html_path}images/hdr-bottom-right.gif' "
-        ."width='4' height='4' alt=''/></th></tr>\n");
+        ."width='4' height='4' alt=''></th></tr>\n");
 
   print("</table>\n");
 }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to