Validation Question

Group

I am trying to validate a file.  I was trying for XTHML transitional but 
am having a problem making it work in NS6/Mozilla (I am having a problem 
getting tables to render properly up with the XHTML doctype - od in 
IE/Opera).

Anyway, I backed down to html 4.01 and everything renders as desired in 
all four browser.  However when I tried to validate I get the strangest 
result.  The validator output is listed below.  Note the insertion of 
the extra body tags that appear to cause the thing to blow up.  I tried 
everything I could think of including re-writing the file from scratch 
on a new disk to avoid some unseen contamination (ok, I was getting 
desperate :-))

I figure I have to be doing something wrong, but I'll be darned if I can 
see it.  Maybe another set of eyes can spot my error.

Two points, if I take out my </head><body> tags, this code will 
validate.  If I try to validate as XTHML transitional it validates.

I am most confused and would greatly appreciate any help.

Thanks in advance.

Mike

Out put follows:

Below is the source input I used for this validation:

1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
2:
3:
4: <html>
5: <head>
6: <!-- Written by Michael J. Phillips -->
7: <!-- KometCommunications -->
8: <!-- Orange County Rebel Riders Web Page Project -->
9: <!-- Copyright 2001, 2002 -->
10: <!-- File:  index.htm (sd02) ver 2.0 xhtml/css -->
11: <title>Orange County Rebel Riders</title>
12:
13:
14: <meta http-equiv="Content-Type" content="text/html; 
charset=windows-1252" />
15:
16: </head>
17:
18: <body>
19: test stuff
20: </body>
21: </html>

Parse Tree

You can also view this parse tree without attributes by selecting the 
appropriate option on the form.

AVERSION CDATA -//W3C//DTD HTML 4.01 Transitional//EN
<HTML>
<HEAD>
<TITLE>
Orange County Rebel Riders
     </TITLE>
AHTTP-EQUIV TOKEN CONTENT-TYPE
       ACONTENT CDATA text/html; charset=windows-1252
     <META>
</META>
</HEAD>
<BODY>
 > <BODY>  <------inserted body tags
test stuff
     </BODY>
</BODY>
</HTML>

Received on Monday, 25 February 2002 10:11:46 UTC