зеркало из https://github.com/mozilla/pjs.git
We no longer call RegisterDTD() on nsParser when initiating parsing of XML
documents.
This commit is contained in:
Родитель
0abd6f233a
Коммит
6cafe14005
|
@ -305,7 +305,9 @@ nsXMLDocument::StartDocumentLoad(nsIURL *aUrl,
|
|||
#else
|
||||
NS_New_Expat_DTD(&theDTD);
|
||||
#endif
|
||||
mParser->RegisterDTD(theDTD);
|
||||
/* 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);
|
||||
mParser->SetCommand(aCommand);
|
||||
mParser->SetContentSink(sink);
|
||||
mParser->Parse(aUrl);
|
||||
|
|
|
@ -305,7 +305,9 @@ nsXMLDocument::StartDocumentLoad(nsIURL *aUrl,
|
|||
#else
|
||||
NS_New_Expat_DTD(&theDTD);
|
||||
#endif
|
||||
mParser->RegisterDTD(theDTD);
|
||||
/* 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);
|
||||
mParser->SetCommand(aCommand);
|
||||
mParser->SetContentSink(sink);
|
||||
mParser->Parse(aUrl);
|
||||
|
|
Загрузка…
Ссылка в новой задаче