Bug 110464, don't load external entities for standalone documents (minor perf optimization). Patch from henris@clinet.fi. r=heikki, sr=jst.

This commit is contained in:
heikki%netscape.com 2002-02-12 01:02:44 +00:00
Родитель af95e4dcc5
Коммит e8d3315332
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -813,6 +813,7 @@ nsExpatDriver::WillBuildModel(const CParserContext& aParserContext,
XML_SetCdataSectionHandler(mExpatParser, Driver_HandleStartCdataSection,
Driver_HandleEndCdataSection);
XML_SetParamEntityParsing(mExpatParser, XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE);
XML_SetDoctypeDeclHandler(mExpatParser, Driver_HandleStartDoctypeDecl, Driver_HandleEndDoctypeDecl);
// Set up the user data.

Просмотреть файл

@ -813,6 +813,7 @@ nsExpatDriver::WillBuildModel(const CParserContext& aParserContext,
XML_SetCdataSectionHandler(mExpatParser, Driver_HandleStartCdataSection,
Driver_HandleEndCdataSection);
XML_SetParamEntityParsing(mExpatParser, XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE);
XML_SetDoctypeDeclHandler(mExpatParser, Driver_HandleStartDoctypeDecl, Driver_HandleEndDoctypeDecl);
// Set up the user data.