This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 809 - 'end tag for "HEAD" which is not finished' Error if <head> has no <title>
Summary: 'end tag for "HEAD" which is not finished' Error if <head> has no <title>
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.7.0
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 18:58 UTC by Daniel Wang
Modified: 2005-12-17 15:37 UTC (History)
0 users

See Also:


Attachments

Description Daniel Wang 2004-06-22 18:58:41 UTC
Steps to reproduce:
1. Save the file below
2. Check the file via upload

Result:
See error: Line 5, column 6: end tag for "HEAD" which is not finished

Expected Result:
It should either validate or give more friendly error

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
</body>
</html>
Comment 1 Olivier Thereaux 2004-06-22 19:34:47 UTC
The error message explanation for this error (#73 "end tag for %1 which is not finished")  already states 
[[ 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.]]

Can't do much better without making a specific error for the lack of <title> in <head>, which we can't 
do with the current architecture.

Can you suggest a better error message explanation?
Comment 2 Terje Bless 2004-09-01 10:20:36 UTC
Resolve INVALID as no feedback has been received since June.
Comment 3 Drew Shirts 2005-12-14 15:55:35 UTC
I have duplicated this bug and found a workaround.
If you add a title tag (e.g. "<title>This is my title</title>") it validates fine.
Comment 4 Terje Bless 2005-12-17 15:36:54 UTC
THat's not a workaround, it's a fix for the original problem in your markup. The 'head' element requires a 
'title' element and the validator will tell you that the 'head' element is "not finished" if it finds the end tag 
for 'head' without having seen a 'title' element. IOW this was never a bug in the validator, it was a genuine 
error in your original markup.

Closing as Invalid.