diff --git a/mozilla/htmlparser/src/nsWellFormedDTD.cpp b/mozilla/htmlparser/src/nsWellFormedDTD.cpp index b58b92d966c..3c89cf6294e 100644 --- a/mozilla/htmlparser/src/nsWellFormedDTD.cpp +++ b/mozilla/htmlparser/src/nsWellFormedDTD.cpp @@ -264,7 +264,7 @@ NS_IMETHODIMP CWellFormedDTD::BuildModel(nsIParser* aParser) { if(NS_SUCCEEDED(result)) { theRecycler->RecycleToken(theToken); } - else { + else if(NS_ERROR_HTMLPARSER_BLOCK!=result){ theTokenizer->PushTokenFront(theToken); } // theRootDTD->Verify(kEmptyString,aParser); diff --git a/mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp b/mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp index b58b92d966c..3c89cf6294e 100644 --- a/mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp +++ b/mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp @@ -264,7 +264,7 @@ NS_IMETHODIMP CWellFormedDTD::BuildModel(nsIParser* aParser) { if(NS_SUCCEEDED(result)) { theRecycler->RecycleToken(theToken); } - else { + else if(NS_ERROR_HTMLPARSER_BLOCK!=result){ theTokenizer->PushTokenFront(theToken); } // theRootDTD->Verify(kEmptyString,aParser);