зеркало из https://github.com/mozilla/gecko-dev.git
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.
This commit is contained in:
Родитель
6497120c24
Коммит
e870ce9054
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче