Last Comment Bug 45566 - DOMParser should throw exceptions for not-well-formed XML
: DOMParser should throw exceptions for not-well-formed XML
Product: Core
Classification: Components
Component: XML (show other bugs)
: Trunk
: All All
-- enhancement with 6 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Andrew Overholt [:overholt]
Depends on:
Blocks: 340383 289714
  Show dependency treegraph
Reported: 2000-07-15 09:30 PDT by Taras Tielkes
Modified: 2012-09-21 07:25 PDT (History)
18 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Quick 4-line ECMAScript example (441 bytes, text/html)
2000-07-15 09:32 PDT, Taras Tielkes
no flags Details

Description User image Taras Tielkes 2000-07-15 09:30:49 PDT
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.
Comment 1 User image Taras Tielkes 2000-07-15 09:32:17 PDT
Created attachment 11446 [details]
Quick 4-line ECMAScript example
Comment 2 User image Heikki Toivonen (remove -bugzilla when emailing directly) 2000-12-15 13:51:21 PST
I am taking all XMLExtras bugs to make it easier to see what I am working on...
Comment 3 User image Heikki Toivonen (remove -bugzilla when emailing directly) 2001-04-05 14:20:32 PDT
This is also something that should be replaced with DOM Level 3 Load & Save
module implementation.
Comment 4 User image Heikki Toivonen (remove -bugzilla when emailing directly) 2001-04-11 14:25:17 PDT
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.
Comment 5 User image Blake Ross 2001-07-24 00:55:37 PDT
Doesn't look like this is getting fixed before the freeze tomorrow night.
Pushing out a milestone.  Please correct if I'm mistaken.
Comment 6 User image Nickolay_Ponomarev 2006-02-11 10:19:09 PST
(About DOM LS and error reporting: note bug 155749 comments 26-32.)
Comment 7 User image Joao Eiras 2007-09-05 14:17:38 PDT
This bug is laying dormant for a while... :(
Comment 8 User image attila lendvai 2010-04-14 05:29:11 PDT
heh, an open bug for 10 years... :)

and it just bit me... :(
Comment 9 User image :Ms2ger (⌚ UTC+1/+2) 2011-09-01 07:39:00 PDT
Invalid per spec: <> and Opera reports this would be web-incompatible.

Note You need to log in before you can comment on or make changes to this bug.