Added an extra condition on an assertion.

This commit is contained in:
harishd%netscape.com 2000-05-05 00:47:11 +00:00
Родитель baed8eb5d4
Коммит bf8ce0afea
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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

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

@ -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