Closed
Bug 76412
Opened 24 years ago
Closed 19 years ago
View Source does not do error-reporting correctly if VIEW_SOURCE_HTML is set
Categories
(Core :: DOM: HTML Parser, defect, P4)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: bzbarsky, Assigned: mrbkap)
References
Details
Attachments
(1 file)
(deleted),
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Comments from bug 52154:
------- Additional Comments From rbs@maths.uq.edu.au 2001-04-17 14:37 -------
It just occurred to me that something was left out when jce2 initially
implemented viewsource in html. I am mentioning it here for the record in case
someone wants to fix it. It has to do with error reporting. The XML version
outputs <error>...</error> [see CViewSourceHTML::WriteTagWithError()]. In the
HTML version, this has to become <span class="error">...</span>.
The rule for that was in viewsouce.css for the error (others prefer blink :-)
.error {
background-color: #FFFFCC;
font-weight: bold;
}
Reporter | ||
Comment 2•24 years ago
|
||
There is another issue here. Currently mValidator is always null as far as I
can tell. So we end up not doing any of the error reporting stuff anyway...
I'll investigate this a bit.
Reporter | ||
Comment 3•24 years ago
|
||
Does the removal of the strict DTD have anything to do with this? I imagine we
used that as the validator.... See bug 50070
Comment 4•24 years ago
|
||
The strict DTD wouldn't always report the errors correctly, so I don't think we
should use it.
Reporter | ||
Comment 5•23 years ago
|
||
OK. Well, does the quirks DTD report errors? If so, I would be willing to try
and hook up this error reporting again...
Comment 6•23 years ago
|
||
I hope not, because I strongly suspect it's concept of an error is different
from what's an error according to the spec's. If we have error reporting it
should be correct, and I doubt we could get anything close to that with any of
the existing DTDs, and especially CNavDTD.
Comment 7•23 years ago
|
||
This is completely broken. Setting mValidator is easy, but does not make it work.
I think the obsolete code can be savely removed.
My fix for bug 57724 will include some syntax highlighting at the tokenizer
level, but that is quite different from the old error reporting (will mark
things such as unescaped ampersands, forgotten semicolons and attributes in end
tags).
Reporter | ||
Comment 8•23 years ago
|
||
Andreas, do you want to morph this bug into "remove the error-reporting code"?
And take it?
Comment 9•23 years ago
|
||
Do we all agree on removing this code?
Comment 10•23 years ago
|
||
I certainly agree, but Harish should have his say.
Comment 11•23 years ago
|
||
Since we don't have a DTD that could be used to report errors correctly ( unless
someone is willing to implement an nsErrorsDTD...which I really doubt ) it makes
sense to remove the unused code.
Comment 12•23 years ago
|
||
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1
(you can query for this string to delete spam or retrieve the list of bugs I've
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Comment 13•23 years ago
|
||
This bug has been marked "future" because the original netscape engineer working
on this is over-burdened. If you feel this is an error, that you or another
known resource will be working on this bug,or if it blocks your work in some way
-- please attach your concern to the bug for reconsideration.
Target Milestone: mozilla1.0.1 → Future
Assignee | ||
Comment 14•19 years ago
|
||
It looks like there's very little left to rip out, might as well get this done.
Assignee: harishd → mrbkap
Status: ASSIGNED → NEW
Priority: -- → P4
QA Contact: moied → parser
Target Milestone: Future → mozilla1.9alpha
Assignee | ||
Comment 15•19 years ago
|
||
This rips out some more unnecessary garbage.
Attachment #202549 -
Flags: superreview?(jst)
Attachment #202549 -
Flags: review?(bzbarsky)
Reporter | ||
Updated•19 years ago
|
Attachment #202549 -
Flags: superreview?(jst)
Attachment #202549 -
Flags: superreview+
Attachment #202549 -
Flags: review?(bzbarsky)
Attachment #202549 -
Flags: review+
Assignee | ||
Comment 16•19 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•