added runtime control for rick's strict dtd work, so engineers can continue to work with existing non-compliant test cases

disabled error reporting in view source, at rick's request
no bug number
r=rickg
a=rickg
This commit is contained in:
buster%netscape.com 2000-06-11 05:05:07 +00:00
parent 1d272d98b9
commit 39e62e0f51
4 changed files with 10 additions and 10 deletions

View File

@ -151,10 +151,10 @@ COtherDTD::COtherDTD() : nsIDTD(), mSharedNodes(0) {
mTokenRecycler=0;
mParserCommand=eViewNormal;
#if 0 //set this to 1 if you want strictDTD to be based on the environment setting.
char* theEnvString = PR_GetEnv("ENABLE_STRICT");
mEnableStrict=PRBool(theEnvString!=0);
else
#if 1 //set this to 1 if you want strictDTD to be based on the environment setting.
char* theEnvString = PR_GetEnv("MOZ_DISABLE_STRICT");
mEnableStrict=PRBool(0==theEnvString);
#else
mEnableStrict=PR_TRUE;
#endif

View File

@ -28,7 +28,7 @@
*/
#define ENABLE_ERROR_OUTPUT //debug only for now...
//#define ENABLE_ERROR_OUTPUT //debug only for now...
#ifdef RAPTOR_PERF_METRICS

View File

@ -151,10 +151,10 @@ COtherDTD::COtherDTD() : nsIDTD(), mSharedNodes(0) {
mTokenRecycler=0;
mParserCommand=eViewNormal;
#if 0 //set this to 1 if you want strictDTD to be based on the environment setting.
char* theEnvString = PR_GetEnv("ENABLE_STRICT");
mEnableStrict=PRBool(theEnvString!=0);
else
#if 1 //set this to 1 if you want strictDTD to be based on the environment setting.
char* theEnvString = PR_GetEnv("MOZ_DISABLE_STRICT");
mEnableStrict=PRBool(0==theEnvString);
#else
mEnableStrict=PR_TRUE;
#endif

View File

@ -28,7 +28,7 @@
*/
#define ENABLE_ERROR_OUTPUT //debug only for now...
//#define ENABLE_ERROR_OUTPUT //debug only for now...
#ifdef RAPTOR_PERF_METRICS