mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
1d272d98b9
commit
39e62e0f51
@ -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
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#define ENABLE_ERROR_OUTPUT //debug only for now...
|
||||
//#define ENABLE_ERROR_OUTPUT //debug only for now...
|
||||
|
||||
|
||||
#ifdef RAPTOR_PERF_METRICS
|
||||
|
@ -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
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#define ENABLE_ERROR_OUTPUT //debug only for now...
|
||||
//#define ENABLE_ERROR_OUTPUT //debug only for now...
|
||||
|
||||
|
||||
#ifdef RAPTOR_PERF_METRICS
|
||||
|
Loading…
Reference in New Issue
Block a user