Closed Bug 86273 Opened 25 years ago Closed 25 years ago

HTML 4.0 Draft version string causes most of page to be not rendered.

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: yoderw, Assigned: harishd)

References

()

Details

Attachments

(2 files)

If the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> is at the beginning of a file, most of the page is not rendered. The <title> is displayed in the application title bar, and the page background image is displayed, but nothing else is. Also, the View > Page Source command shows the complete source.
Attached image IE 5 rendering of page
The problem seems to be as follows: 1) We don't recognize the HTML 4.0 Draft doctype as a quirks doctype and parse the page in strict mode. This includes strict comment parsing. 2) We encounter the following HTML: <!-- Do not alter -- this skips over the red area in the content background graphic. --> Note the "--" in the comment. In strict mode this ends the comment. then the "--" right before the ">" starts a new comment. The rest of the page is effectively commented out as a result. Over to parser. Should we treat "HTML 4.0 Draft" in quirks mode?
Assignee: clayton → harishd
Status: UNCONFIRMED → NEW
Component: HTML Element → Parser
Ever confirmed: true
Boris: IMO, unknown DOCTYPEs should be treated as strict. Is HTML 4.0 Draft a known DOCTYPE?
Status: NEW → ASSIGNED
Harish, that was my question. I'd never heard of it till this bug was filed. But should we add it to our list of known doctypes? Doug, I can't find any references to "HTML 4.0 Draft" as a W3C-sanctioned doctype. Is it?
Upon inspection, I don't see the draft DOCTYPE either. This was in the template given to me by the school webmaster. I have since notified him, and changed my usage of the DOCTYPE. I agree, unknown DOCTYPEs should be handled as strict.
Doug, thanks for checking it out! Resolving invalid since we seem to be doing the right thing here.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
QA Contact: bsharma → moied
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: