We've decided to do away with the notion of an nsExpatDTD. The expat tokenizer which encapsulates the expat parser will be driven by nsWellFormedDTD. So, I'm removing the code that constructed an expat DTD for controlling the parsing of an XML document.
git-svn-id: svn://10.0.0.236/trunk@22675 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
86f2920385
commit
614b3fd83c
@ -38,7 +38,6 @@
|
||||
#include "nsIDOMComment.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMText.h"
|
||||
#include "nsExpatDTD.h"
|
||||
|
||||
// XXX The XML world depends on the html atoms
|
||||
#include "nsHTMLAtoms.h"
|
||||
@ -300,11 +299,8 @@ nsXMLDocument::StartDocumentLoad(nsIURL *aUrl,
|
||||
|
||||
nsIDTD* theDTD=0;
|
||||
// XXX For now, we'll use the HTML DTD
|
||||
#ifndef EXPAT
|
||||
NS_NewWellFormed_DTD(&theDTD);
|
||||
#else
|
||||
NS_New_Expat_DTD(&theDTD);
|
||||
#endif
|
||||
|
||||
/* Commenting out the call to RegisterDTD() as per rickg's instructions.
|
||||
XML and HTML DTD's are going to be pre-registered withing nsParser. */
|
||||
// mParser->RegisterDTD(theDTD);
|
||||
|
||||
@ -38,7 +38,6 @@
|
||||
#include "nsIDOMComment.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMText.h"
|
||||
#include "nsExpatDTD.h"
|
||||
|
||||
// XXX The XML world depends on the html atoms
|
||||
#include "nsHTMLAtoms.h"
|
||||
@ -300,11 +299,8 @@ nsXMLDocument::StartDocumentLoad(nsIURL *aUrl,
|
||||
|
||||
nsIDTD* theDTD=0;
|
||||
// XXX For now, we'll use the HTML DTD
|
||||
#ifndef EXPAT
|
||||
NS_NewWellFormed_DTD(&theDTD);
|
||||
#else
|
||||
NS_New_Expat_DTD(&theDTD);
|
||||
#endif
|
||||
|
||||
/* Commenting out the call to RegisterDTD() as per rickg's instructions.
|
||||
XML and HTML DTD's are going to be pre-registered withing nsParser. */
|
||||
// mParser->RegisterDTD(theDTD);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user