Bug in html validator re lack of title tag in XHTML 1.0 strict doc

Hi,

I've noticed that if you try and validate an XHTML 1.0 Strict html file,
but miss out a 'title' tag, rather than just say 'you are missing a
title tag, they are required in XHTML 1.0 Strict', it says:
 
Line 6, column 7: end tag for "head" which is not finished
</head>
Most likely, You nested tags and closed them in the wrong order. For
example <p><em>...</p> is not acceptable, as <em> must be closed before
<p>. Acceptable nesting is: <p><em>...</em></p> 
Another possibility is that you used an element (e.g. 'ul') which
requires a child element (e.g. 'li') that you did not include. Hence the
parent element is "not finished", not complete. 


Example HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
 </head>
 <body>
  <p>test</p>
 </body>
</html>

I thought I'd post to the list first rather than open a bugzilla ticket.

Cheers

Paul

Paul Lomax,
Internet Technology Manager, IPC Country and Leisure Media.
IPC Media Ltd, a Time Warner Company.

"The Internet is a waste of time, and that's exactly what's right about
it."  
--William Gibson (1948 - ) 
-----------------------------------------------------------------------
This E-mail is from IPC Media Ltd whose registered office is at Kings
Reach Tower, Stamford Street, London SE1 9LS, registered number 53626.
The contents and any attachments to it include information that is 
private and confidential and should only be read by those persons to 
whom they are addressed. IPC Media accepts no liability for any loss or
damage suffered by any person arising from the use of this e-mail. 
Neither IPC Media nor the sender accepts any responsibility for viruses
and it is your responsibility to check the email and attachments (if any).
No contracts may be concluded on behalf of IPC Media by means of e-mail
communications. If you have received this e-mail in error, please destroy
and delete the message from your computer. For unbeatable savings on
magazine subscriptions and great gift ideas visit www.giftmags.co.uk 

Received on Thursday, 7 April 2005 17:30:12 UTC