bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

content not displayed: HEAD inside BODY in a 'strict' doctype document

VERIFIED WONTFIX

Status

()

Core
HTML: Parser
P3
normal
VERIFIED WONTFIX
18 years ago
18 years ago

People

(Reporter: John Morrison, Assigned: rickg)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

18 years ago
Sorry, but I haven't been following all the details of the various DTDs, but I
came across a page that would not display at all due to
the doctype and some not-well-formed content, and thought I would note it.

The problem boils down to the presence of a duplicate <head></head>
inside of the BODY element, and the fact that the doctype is

---------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Final//EN">
<HTML>

<HEAD></HEAD>

<BODY>

<HEAD></HEAD>    <!-- a HEAD inside the BODY -->

<p> Can you see this text </p>

</BODY>

</HTML>
------------------------------------------------------------

So, while the document is not well-formed, and they are asking for
a strict interpretation, but is it really the intent to display
nothing when an error is encountered?
(Reporter)

Comment 1

18 years ago
er, the document is well-formed, but not valid (wrong choice of terms).
(Assignee)

Comment 2

18 years ago
The document in question is invalid, and the strict DTD will not accept invalid 
markup -- hence the name.
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → WONTFIX
(Reporter)

Comment 3

18 years ago
Okey-dokey. Verified wontfix.

As a curiosity, I note that I was looking at a few of the pages at this site, 
and some display when they have this duplicate <HEAD> inside the <BODY>. 
The 'loophole' is that if <HEAD> is enclosed in a <CENTER>, then it is allowed
to pass, and the page will display.
e.g., 
  <center><HEAD></HEAD></center>   <!-- a HEAD inside the BODY inside CENTER -->

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.