Fix for 32263

Create a new instance of the DTD when called by
the JS engine ( only when creating a new parser context ).
r=rickg.


git-svn-id: svn://10.0.0.236/trunk@63381 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-03-18 06:48:09 +00:00
parent 16a73d5175
commit ebca89a38b
2 changed files with 2 additions and 4 deletions

View File

@@ -958,14 +958,13 @@ aContentType,PRBool aVerifyEnabled,PRBool aLastCall,eParseMode aMode){
eAutoDetectResult theStatus=eUnknownDetect;
if(mParserContext && (mParserContext->mSourceType==aContentType)) {
theDTD=mParserContext->mDTD;
mParserContext->mDTD->CreateNewInstance(&theDTD); // To fix bug 32263
theStatus=mParserContext->mAutoDetectStatus;
//added this to fix bug 32022.
}
pc=new CParserContext(theScanner,aKey, 0,theDTD,theStatus,aLastCall);
if(pc && theScanner) {
PushContext(*pc);