DOMParser should throw exceptions for not-well-formed XML

RESOLVED INVALID

Status

()

Core
XML
--
enhancement
RESOLVED INVALID
17 years ago
5 years ago

People

(Reporter: Taras Tielkes, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
At the moment the the DOMParser component from the xmlextras module doesn't 
report any fatal errors (such as XML that is not well-formed). It appears that 
some error message is included in the (DOM) document tree.

It would be nice if we could catch parser exception using the ECMAScript 
try/catch/finally construct.
(Reporter)

Comment 1

17 years ago
Created attachment 11446 [details]
Quick 4-line ECMAScript example
Target Milestone: --- → mozilla0.9
I am taking all XMLExtras bugs to make it easier to see what I am working on...
Assignee: vidur → heikki
This is also something that should be replaced with DOM Level 3 Load & Save
module implementation.
Whiteboard: [Replace with DOM 3 Load & Save]
I do not want to change these so close to the milestone deadline. Besides, I
want to replace the DOMParser and XMLSerializer with DOM 3 Load & Save. Moving
to 0.9.1 for now.
Target Milestone: mozilla0.9 → mozilla0.9.1
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Target Milestone: mozilla0.9.2 → mozilla0.9.3

Comment 5

16 years ago
Doesn't look like this is getting fixed before the freeze tomorrow night.
Pushing out a milestone.  Please correct if I'm mistaken.
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → Future

Updated

15 years ago
QA Contact: petersen → rakeshmishra

Updated

14 years ago
QA Contact: rakeshmishra → ashishbhatt

Comment 6

12 years ago
(About DOM LS and error reporting: note bug 155749 comments 26-32.)

Updated

11 years ago
Blocks: 340383

Comment 7

10 years ago
This bug is laying dormant for a while... :(

Updated

10 years ago
Assignee: hjtoi-bugzilla → nobody
Blocks: 289714
Priority: P3 → --
QA Contact: ashshbhatt → xml
Whiteboard: [Replace with DOM 3 Load & Save]
Target Milestone: Future → ---

Comment 8

7 years ago
heh, an open bug for 10 years... :)

and it just bit me... :(
Invalid per spec: <http://html5.org/specs/dom-parsing.html> and Opera reports this would be web-incompatible.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.