Last Comment Bug 196355 - Implement validating XML parser (validate with DTDs)
: Implement validating XML parser (validate with DTDs)
Status: NEW
:
Product: Core
Classification: Components
Component: XML (show other bugs)
: Trunk
: All All
: -- enhancement with 17 votes (vote)
: ---
Assigned To: Heikki Toivonen (remove -bugzilla when emailing directly)
:
Mentors:
Depends on: entities
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-07 11:21 PST by Heikki Toivonen (remove -bugzilla when emailing directly)
Modified: 2010-02-07 23:12 PST (History)
11 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Heikki Toivonen (remove -bugzilla when emailing directly) 2003-03-07 11:21:19 PST
Breaking validation from bug 22942 into its own bug.

This is only about validation with DTDs. If you want schema validation that is a
different bug.
Comment 1 Heikki Toivonen (remove -bugzilla when emailing directly) 2003-03-07 11:23:27 PST
Note that we have identified some needs (for example Web Services, editor) which
would be easier to implement if the validation was done in the content model
(compared to validation done during the actual parse, like Xerces(?) does).
Comment 2 Hixie (not reading bugmail) 2003-05-02 09:37:36 PDT
Note that (IMHO) this should most definitely not be done on-load. We don't want
to be validating any document we open, wellformedness checking is quite enough.
Comment 3 Hixie (not reading bugmail) 2003-05-24 14:04:11 PDT
Is this basically requesting a scriptable API to take a DOM and validate it,
which extensions or GRE apps such as Composer can then leverage to implement
validation services?
Comment 4 J.M.N. 2003-06-30 14:41:33 PDT
Would it be possible to handle the processing of named entities in the external
DTD?  It doesn't seem to be happening at the moment.
Comment 5 Trejkaz (pen name) 2005-04-27 17:20:00 PDT
Firefox doesn't appear to validate illegal character escapes right now either. 
Is that part of this bug as well?

(e.g.  is considered "standards compliance" even though any real XML parser
would reject it in a snap.)
Comment 6 Jonas Sicking (:sicking) No longer reading bugmail consistently 2005-04-27 17:26:57 PDT
What's wrong with  ?
Comment 7 Xanthor Sccas 2005-04-28 03:40:07 PDT
(In reply to comment #5)
> (e.g.  is considered "standards compliance" even though any real XML parser
> would reject it in a snap.)
WorksForMe : 
"XML Parsing Error: reference to invalid character number"
Comment 8 Brett Zamir 2010-02-07 23:12:47 PST
Cross-posting on relevant bug pages:

For this bug, and a number of other associated bugs (Bug 204102, Bug 267350, Bug 22942, and to a lesser extent Bug 196355), I've started a pledge drive at http://pledgie.com/campaigns/7732 to try to hire a developer(s) who can work with the Mozilla devs (if they are ineligible themselves) to get these long-standing and niche but important-to-XML-users bugs fixed. Feel free to make a pledge to donate toward these fixes or, if you are a developer, make a bid in the comments there to offer to fix, in conjunction with Mozilla devs, this or any of the other aforementioned XML-related bugs/feature requests. 

(If we can get enough momentum, Bug 234485, Bug 98413, Bug 275196, and Bug 94270 might be also nice candidates to get addressed too, but I've started with the (single-point-of-failure-causing) DTD issues.)

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