Closed Bug 810559 Opened 13 years ago Closed 13 years ago

nsSAXXMLReader::HandleStartDTD calls nsISAXLexicalHandler::StartDTD with reversed systemID, publicID

Categories

(Core :: XML, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: WeirdAl, Assigned: WeirdAl)

Details

Attachments

(1 file)

IDL for nsISAXLexicalHandler: void startDTD(in AString name, in AString publicId, in AString systemId); C++ call on startDTD: if (mLexicalHandler) { return mLexicalHandler->StartDTD(nsDependentString(aName), nsDependentString(aSystemId), nsDependentString(aPublicId)); } This makes SAX parsing... less than ideal. Patch with testcase coming.
I thought about altering the IDL, but the SAX specification says the IDL is correct: http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html Also, due to the limitations of XPCShell testing, I wasn't able to write a simple unit-test for this, either: apparently I have to be able to load a DTD, and there aren't any handy in XPCShell land. I could write a chrome mochitest, but that'll take a little longer.
Attachment #680332 - Flags: review?(bugs)
Comment on attachment 680332 [details] [diff] [review] patch without testcase I wonder why expat and SAX have the parameters in different order. chrome test would be nice.
Attachment #680332 - Flags: review?(bugs) → review+
Attachment #680332 - Flags: checkin?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: