Closed
Bug 210311
Opened 22 years ago
Closed 17 years ago
request to add typo-ed HTML 3.0 DOCTYPE to quirks mode list
Categories
(Core :: DOM: HTML Parser, enhancement)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ubasu, Assigned: harishd)
References
()
Details
Attachments
(5 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617
On the page www.ce.berkeley.edu/~rlt/feap/, the doctype
<!doctype HTML public "-//W30//DTD W3 HTML 3.0//EN">
causes incorrect comment parsing:
Sections between two instances of
<!-------------------------------------------------------------->
are treated as comments, and thus left out.
For examples, see the png files on
http://www.ce.berkeley.edu/~ubasu/mozcomment/
As you will notice:
The sections "MANUALS FOR FEAP Ver 7.4" and "LINEAR EQUATION SOLVER INTERFACES"
are not rendered in Mozilla because they are treated as comments, as can be seen
by viewing the source (A horizontal rule near the top is missing for the same
reason)
I looked at the Quirks mode page and the test page
http://www.mozilla.org/docs/web-developer/quirks/quirklist.html
http://dbaron.org/mozilla/tests/compat?doctype=%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3O%2F%2FDTD+W3+HTML+3.0%2F%2FEN%22%3E
but those did not seem helpful in this context.
However, changing the doctype to
<!doctype HTML public "-//W3C//DTD HTML 3.2//EN">
causes the page to be displayed correctly.
Reproducible: Always
Steps to Reproduce:
1. View relevant page using Mozilla 1.4rc2
2.
3.
Actual Results:
Some sections (described in "Details") are incorrectly commented out
Expected Results:
Those sections should be displayed
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Reporter | ||
Comment 3•22 years ago
|
||
Reporter | ||
Comment 4•22 years ago
|
||
Reporter | ||
Comment 5•22 years ago
|
||
Comment 6•22 years ago
|
||
Confirming new 20030614 PC/WinXP. Both DOCTYPEs should put Mozilla into quirks
mode. The 3.2 one is working regardless of the fact that "doctype HTML public"
is in lower-case. The 3.0 one will only go into quirks mode if the string is
upper-case, even those it's in the list of quirks mode DOCTYPEs. It appears
it's being treated as an unknown DOCTYPE and going into standards mode.
Ushnish, your comments are not working correctly in standards mode because they
are using invalid syntax. You cannot include a string of hyphens within the
comment. Reference http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4
If you use a DOCTYPE that puts Mozilla in quirks mode (such as HTML 3.2), it
will forgive your invalid comments. Better to fix the comments, though.
OS->All
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Comment 7•22 years ago
|
||
Updating summary to reflect the DOCTYPE issue, as the comments are being treated
correctly in quirks vs. standard mode. The question has become why is this
DOCTYPE triggering standards mode.
Summary: Incorrect comment parsing causes sections to be omitted → Quirks mode DOCTYPE being treated as case-sensitive, causing standards mode rendering
Reporter | ||
Comment 8•22 years ago
|
||
Thanks for the response.
I realised what the problem was.
The correct specification for 3.0 is
<!doctype HTML public "-//W3O//DTD W3 HTML 3.0//EN">
from http://www.w3.org/MarkUp/html3/overview.html
But the header in the page has W30 (zero) instead of W3O (big-O)
I understand that this is an error in the web page, but could the parser be
changed to handle W30 as well as W3O? This seems to be reasonable for quirks
mode as both old-NS and MSIE seem to do this. Hopefully, this should involve
only adding a couple of entries to a table.
Comment 9•22 years ago
|
||
Sev->enhancement
Re-revising summary to reflect current state of bug
Severity: normal → enhancement
Summary: Quirks mode DOCTYPE being treated as case-sensitive, causing standards mode rendering → RFE: request to add typo-ed HTML 3.0 DOCTYPE to quirks mode list
Is this a typo that's present on other pages on the web, or was it only on your
page (and now fixed)?
Reporter | ||
Comment 11•22 years ago
|
||
I don't know if this bug is there on other pages, but it is quite possible that
it is. Moreover, the page that I am referring to is not my own but belongs to
one of my professors, and it has not been fixed.
My thinking is that since this typo is handled by both NS4.77 and MSIE, it
should be handled by the quirks mode in Mozilla.
Updated•21 years ago
|
Hardware: PC → All
Summary: RFE: request to add typo-ed HTML 3.0 DOCTYPE to quirks mode list → request to add typo-ed HTML 3.0 DOCTYPE to quirks mode list
Comment 12•17 years ago
|
||
The website in question works as intended in the latest Firefox release as well as other browsers. And all that even though Full Standards mode is used.
I personally think Tech Evangelism is more effective than doctype-adding. But of course this bug is from a different era.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•