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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user