From b18dae7bc3c2ff801efdf768ee9164e8d530a593 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Sun, 11 Jun 2000 05:05:07 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@71989 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/COtherDTD.cpp | 8 ++++---- mozilla/htmlparser/src/nsViewSourceHTML.cpp | 2 +- mozilla/parser/htmlparser/src/COtherDTD.cpp | 8 ++++---- mozilla/parser/htmlparser/src/nsViewSourceHTML.cpp | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mozilla/htmlparser/src/COtherDTD.cpp b/mozilla/htmlparser/src/COtherDTD.cpp index eb3b2fb6893..9c8d33ff2c2 100644 --- a/mozilla/htmlparser/src/COtherDTD.cpp +++ b/mozilla/htmlparser/src/COtherDTD.cpp @@ -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 diff --git a/mozilla/htmlparser/src/nsViewSourceHTML.cpp b/mozilla/htmlparser/src/nsViewSourceHTML.cpp index 3295f9d9c2d..ab3a88b5a8f 100644 --- a/mozilla/htmlparser/src/nsViewSourceHTML.cpp +++ b/mozilla/htmlparser/src/nsViewSourceHTML.cpp @@ -28,7 +28,7 @@ */ -#define ENABLE_ERROR_OUTPUT //debug only for now... +//#define ENABLE_ERROR_OUTPUT //debug only for now... #ifdef RAPTOR_PERF_METRICS diff --git a/mozilla/parser/htmlparser/src/COtherDTD.cpp b/mozilla/parser/htmlparser/src/COtherDTD.cpp index eb3b2fb6893..9c8d33ff2c2 100644 --- a/mozilla/parser/htmlparser/src/COtherDTD.cpp +++ b/mozilla/parser/htmlparser/src/COtherDTD.cpp @@ -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 diff --git a/mozilla/parser/htmlparser/src/nsViewSourceHTML.cpp b/mozilla/parser/htmlparser/src/nsViewSourceHTML.cpp index 3295f9d9c2d..ab3a88b5a8f 100644 --- a/mozilla/parser/htmlparser/src/nsViewSourceHTML.cpp +++ b/mozilla/parser/htmlparser/src/nsViewSourceHTML.cpp @@ -28,7 +28,7 @@ */ -#define ENABLE_ERROR_OUTPUT //debug only for now... +//#define ENABLE_ERROR_OUTPUT //debug only for now... #ifdef RAPTOR_PERF_METRICS