Added an extra condition on an assertion.
git-svn-id: svn://10.0.0.236/trunk@68302 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8f7a610b03
commit
afbd91ee27
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user