Closed
Bug 36872
Opened 26 years ago
Closed 26 years ago
Compatibility mode testing should be reviewed
Categories
(Core :: DOM: HTML Parser, defect, P3)
Core
DOM: HTML Parser
Tracking
()
VERIFIED
FIXED
People
(Reporter: emk, Assigned: rickg)
References
()
Details
Attachments
(3 files)
The mode testing code such as "mode != eParseMode_noquirks" is broken now since
new eParseMode_strict is erroneously treated as quirks.
They should be changed to "mode == eParseMode_quirks" or "mode !=
eParseMode_strict".
It is case-by-case which change is better.
Similarly, "mode == eParseMode_noquirks" should be changed to "mode !=
eParseMode_quirks" or "mode == eParseMode_strict".
Do you know of a specific problem, or this is just "being careful"?
| Reporter | ||
Comment 2•26 years ago
|
||
| Reporter | ||
Comment 3•26 years ago
|
||
| Reporter | ||
Comment 4•26 years ago
|
||
| Reporter | ||
Comment 5•26 years ago
|
||
Currently, only (nonexistent) "HTML 6.0" (or later) DOCTYPES are handled in
noquirks, so I couldn't attach a noquirks testcase.
HTML 4.0 (Strict) is handled in strict, but comments are parsed as if it is
handled in quirks.
| Reporter | ||
Comment 6•26 years ago
|
||
Here is all noquirks/strict problems I found:
http://www3.airnet.ne.jp/emk/moz/doctypes.cgi
*** Bug 36995 has been marked as a duplicate of this bug. ***
Fixed in my tree, awaiting chance to land.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 10•26 years ago
|
||
Fixed by changing _noquirks to _strict.
| Assignee | ||
Comment 11•26 years ago
|
||
Fixed by changing _noquirks to _strict.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
| Reporter | ||
Comment 12•26 years ago
|
||
Verified using 2000050408 nightly build on Windows 2000.
Status: RESOLVED → VERIFIED
Reopening. My understanding was that the difference between noquirks and strict
was only in the parser. Therefore the tests should have been changed from
== noquirks to != quirks
!= noquirks to == quirks
The current code looks very wrong.
Status: VERIFIED → REOPENED
| Assignee | ||
Comment 14•26 years ago
|
||
Um, I don't think so. David if you have a particular concern, raise it. But the
code was changed to reflect quirks vs. strict, and no_quirks has been removed.
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
Comment 15•26 years ago
|
||
David: in order to fix a regression on bug 18817, I just checked in the
following change per suggestion of VYV03354@nifty.ne.jp.
/layout/html/document/src/nsHTMLContentSink.cpp, line 3715:
if (eDTDMode_noquirks== mode) {
should be:
if (eDTDMode_strict == mode) {
In that case at least, the fix is correct. I don't think that
changing "==noquirks" to "!=quirks" everywhere is the right thing to do.
Comment 17•25 years ago
|
||
Verified on 2001-07-19-branch on WinNT
The attached test cases loads fine.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•