52361 - parser shouldn't generate synthetic doctype because

it affects SCRIPTs

r=jst


git-svn-id: svn://10.0.0.236/trunk@79147 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-09-14 19:02:13 +00:00
parent bcec47fd04
commit b4de04b36e
4 changed files with 0 additions and 28 deletions

View File

@@ -537,15 +537,6 @@ nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,PRBool aNotifySink,nsIParse
result=HandleToken(theEndToken,mParser);
}
}
if(!mBodyContext->mFlags.mHadDocTypeDecl) {
CToken* theDocTypeToken=mTokenAllocator->CreateTokenOfType(eToken_doctypeDecl,eHTMLTag_markupDecl);
if(theDocTypeToken) {
nsAutoString theDocTypeStr;
theDocTypeStr.AssignWithConversion("<!DOCTYPE \"-//W3C//DTD HTML 3.2 Final//EN\">");
theDocTypeToken->Reinitialize(eHTMLTag_markupDecl,theDocTypeStr);
result=HandleToken(theDocTypeToken,mParser);
}
}
if(result==NS_OK) {
eHTMLTags theTarget;
@@ -2125,10 +2116,6 @@ nsresult CNavDTD::HandleDocTypeDeclToken(CToken* aToken){
nsresult result=NS_OK;
if(mBodyContext) {
mBodyContext->mFlags.mHadDocTypeDecl=PR_TRUE;
}
#ifdef RICKG_DEBUG
WriteTokenToLog(aToken);
#endif