Added an extra condition on an assertion.

This commit is contained in:
harishd%netscape.com 2000-05-05 00:47:11 +00:00
parent baed8eb5d4
commit bf8ce0afea
2 changed files with 2 additions and 2 deletions

View File

@ -749,7 +749,7 @@ nsresult nsParser::CreateCompatibleDTD(nsIDTD** aDTD,
DetermineParseMode(*aDocTypeStr,theDTDMode,theDocType);
NS_ASSERTION(aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
NS_ASSERTION(aDTDMode==eDTDMode_unknown || aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
if(aDTDMode!=eDTDMode_unknown) theDTDMode=aDTDMode; // aDTDMode takes precedence over theDTDMode

View File

@ -749,7 +749,7 @@ nsresult nsParser::CreateCompatibleDTD(nsIDTD** aDTD,
DetermineParseMode(*aDocTypeStr,theDTDMode,theDocType);
NS_ASSERTION(aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
NS_ASSERTION(aDTDMode==eDTDMode_unknown || aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
if(aDTDMode!=eDTDMode_unknown) theDTDMode=aDTDMode; // aDTDMode takes precedence over theDTDMode