Just for fun, I tried the http://validator.w3.org/ on the main index.html for Tomcat 
3.x and 4.x.
They both failed.

Here is a patch for the src/webapps/index.html page for Tomcat3.3
to make it conform to the HTML 4.01 Transitional

Index: index.html
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/webpages/index.html,v
retrieving revision 1.25
diff -r1.25 index.html
1c1
< <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
---
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
>"http://www.w3.org/TR/html4/loose.dtd";>
10c10
< <img SRC="tomcat.gif" height=92 width=130 align=LEFT><b><font face="Arial, 
Helvetica, sans-serif"><font size=+3>Tomcat</font></font></b> 
---
> <img SRC="tomcat.gif" height="92" width="130" align="left" alt="The Mighty Tomcat - 
>MEOW!"><b><font face="Arial, Helvetica, sans-serif"><font 
>size="+3">Tomcat</font></font></b> 
12c12
< <b><font face="Arial, Helvetica, sans-serif"><font size=-1>Version
---
> <b><font face="Arial, Helvetica, sans-serif"><font size="-1">Version
43c43
< <br>&nbsp;</ul>
---
> </ul>
59c59
< <b><a href="mailto:[EMAIL PROTECTED]?subject=subscription request: 
jsp-interest&body=subscribe jsp-interest [Your Full 
Name]">[EMAIL PROTECTED]</a></b></li>
---
> <b><a href="mailto:[EMAIL PROTECTED]?subject=subscription request: 
>jsp-interest&amp;body=subscribe jsp-interest [Your Full 
>Name]">[EMAIL PROTECTED]</a></b></li>
62c62
< <b><a href="mailto:[EMAIL PROTECTED]?subject=subscription request: 
servlet-interest&body=subscribe servlet-interest [Your Full 
Name]">[EMAIL PROTECTED]</a></b></li>
---
> <b><a href="mailto:[EMAIL PROTECTED]?subject=subscription request: 
>servlet-interest&amp;body=subscribe servlet-interest [Your Full 
>Name]">[EMAIL PROTECTED]</a></b></li>
66,67c66,67
< <p align="right"><font size=-1><img src="tomcat-power.gif" width="77" 
height="80"></font><br>
<   &nbsp; <font size=-1>Copyright &copy; 1999-2001 Apache Software Foundation</font> 
---
> <p align="right"><font size="-1"><img src="tomcat-power.gif" width="77" height="80" 
>alt="Powered by Tomcat"></font><br>
>   &nbsp; <font size="-1">Copyright &copy; 1999-2001 Apache Software 
>Foundation</font> 
69c69
<   <font size=-1>All Rights Reserved</font> <br>
---
>   <font size="-1">All Rights Reserved</font> <br>



Here is a patch for the src/webapps/index.jsp page for Tomcat4.0
to make it conform to the HTML 4.01 Transitional

Index: index.jsp
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-4.0/webapps/ROOT/index.jsp,v
retrieving revision 1.1
diff -r1.1 index.jsp
1c1
< <!doctype html public "-//w3c//dtd html 4.0 transitional//en" 
"http://www.w3.org/TR/REC-html40/strict.dtd";>
---
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
>"http://www.w3.org/TR/html4/loose.dtd";>
43c43
<         <td align="left" width="130"><a 
href="http://jakarta.apache.org/tomcat/index.html";><img src="tomcat.gif" height="92" 
width="130" border="0" alt="The Mighty Tomcat - MEOW!"></td>
---
>         <td align="left" width="130"><a 
>href="http://jakarta.apache.org/tomcat/index.html";><img src="tomcat.gif" height="92" 
>width="130" border="0" alt="The Mighty Tomcat - MEOW!"></a></td>
110c110
<             <p><center><b>If you're seeing this page via a web browser, it means 
you've setup Tomcat successfully. Congratulations!</b></center></p>
---
>             <p align="center"><b>If you're seeing this page via a web browser, it 
>means you've setup Tomcat successfully. Congratulations!</b></p>
112c112
<             <p>As you may have guessed by now, this is the default Tomcat home page. 
It can be found on the local filesystem at:
---
>             <p>As you may have guessed by now, this is the default Tomcat home page. 
>It can be found on the local filesystem at:</p>
116d115
<             </p>
125,126c124,125
<                 <li><b><a href="mailto:[EMAIL PROTECTED]?subject=subscription 
request: jsp-interest&body=subscribe jsp-interest [Your Full 
Name]">[EMAIL PROTECTED]</a></b></li>
<                 <li><b><a href="mailto:[EMAIL PROTECTED]?subject=subscription 
request: servlet-interest&body=subscribe servlet-interest [Your Full 
Name]">[EMAIL PROTECTED]</a></b></li>
---
>                 <li><b><a href="mailto:[EMAIL PROTECTED]?subject=subscription 
>request: jsp-interest&amp;body=subscribe jsp-interest [Your Full 
>Name]">[EMAIL PROTECTED]</a></b></li>
>                 <li><b><a href="mailto:[EMAIL PROTECTED]?subject=subscription 
>request: servlet-interest&amp;body=subscribe servlet-interest [Your Full 
>Name]">[EMAIL PROTECTED]</a></b></li>
138c137
<             <p align="right"><font size=-1><img src="tomcat-power.gif" width="77" 
height="80"></font><br>
---
>             <p align="right"><font size="-1"><img src="tomcat-power.gif" width="77" 
>height="80" alt="Powered by Tomcat"></font><br>
140,141c139,140
<             <font size=-1>Copyright &copy; 1999-2001 Apache Software 
Foundation</font><br>
<             <font size=-1>All Rights Reserved</font> <br>
---
>             <font size="-1">Copyright &copy; 1999-2001 Apache Software 
>Foundation</font><br>
>             <font size="-1">All Rights Reserved</font> <br>

Please note that even after applying this patch for the ROOT/index.jsp page, it is not 
valid, as it uses the bordercolor
attribute on the table element, which seems to be IE feature. It's not part of 
HTML4.01.



I can also produce patches to make the pages valid XHTML1.0, but then some browsers 
probably get troubles..

Any comments appreciated

Alf Hogemark

Reply via email to