Closed Bug 297814 Opened 20 years ago Closed 20 years ago

Report XML parsing errors to the error (JS) console

Categories

(Core :: XML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8beta3

People

(Reporter: benjamin, Assigned: benjamin)

Details

Attachments

(1 file)

Currently XML parsing errors are displayed on-screen with the yellow error page, but the error is not reported to the error (JS) console. If developers are using XMLHttpRequest or some kinds of overlays, it is much more helpful if XML parsing errors are reported to the error console.
We have a bug on not using the yellow thing for data documents (and reporting the error in some other way) already...
Whiteboard: DUPEME
Boris, can you point me at that bug, I can't find it; the closest thing I found was bug 52422. I don't really want to touch how we do the yellow error pages (yet), just add an additional message-to-console.
Bug 289714, I believe.
Assignee: xml → benjamin
Status: NEW → ASSIGNED
Attachment #186991 - Flags: superreview?(shaver)
Attachment #186991 - Flags: review?(mrbkap)
Comment on attachment 186991 [details] [diff] [review] Report XML parsing errors to the console, rev. 1 I don't _really_ like using nsScriptError for this, because of the JavaScript references in toString and so forth, but I sure do like reporting errors to the console. sr=shaver Are we going to want a pref to suppress this category of errors, as many now crave for the extremely common CSS error messages?
Attachment #186991 - Flags: superreview?(shaver) → superreview+
I hope that these errors will be much less common than the CSS messages, as there's not a lot of XML out there on the web yet. It sounds to me like people want a console manager UI flag to suppress the display of certain types of errors, which would be cool but is a different bug.
Attachment #186991 - Flags: review?(mrbkap) → review+
Whiteboard: DUPEME
Attachment #186991 - Flags: approval-aviary1.1a2?
Comment on attachment 186991 [details] [diff] [review] Report XML parsing errors to the console, rev. 1 a=chofmann
Attachment #186991 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Fixed for 1.8b3
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta3
Steps for QA testing of this bug are simple: visit a malformed XML file (e.g. data:text/xml,<a ) and check to see that the error appears in the JS console with the correct column and line number.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: