Closed
Bug 86273
Opened 23 years ago
Closed 23 years ago
HTML 4.0 Draft version string causes most of page to be not rendered.
Categories
(Core :: DOM: HTML Parser, defect)
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.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
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
Comment 5•23 years ago
|
||
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?
Reporter | ||
Comment 6•23 years ago
|
||
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.
Comment 7•23 years ago
|
||
Doug, thanks for checking it out! Resolving invalid since we seem to be doing the right thing here.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•