61630 - propagate onstop request.
48256 - Verify hierarchy requested by a child tag. 43678 - Make TABLE a legal child of P. 58942 - MAP is not a legal child of TR! 57999 - When the parser is enabled make sure to pass correct information to ResumeParse(). 59669 - Remove a warning. r=heikki sr=vidur git-svn-id: svn://10.0.0.236/trunk@85991 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -757,13 +757,17 @@ nsresult nsHTMLTokenizer::ConsumeEndTag(PRUnichar aChar,CToken*& aToken,nsScanne
|
||||
nsresult result=NS_OK;
|
||||
|
||||
if(aToken) {
|
||||
eHTMLTags theTag=(eHTMLTags)aToken->GetTypeID();
|
||||
if((theTag==eHTMLTag_textarea || theTag==eHTMLTag_xmp) && mRecordTrailingContent) {
|
||||
mRecordTrailingContent=PR_FALSE;
|
||||
}
|
||||
PRBool isHTML=((eHTML3Text==mDocType) || (eHTML4Text==mDocType));
|
||||
result= aToken->Consume(aChar,aScanner,isHTML); //tell new token to finish consuming text...
|
||||
AddToken(aToken,result,&mTokenDeque,theAllocator);
|
||||
|
||||
eHTMLTags theTag=(eHTMLTags)aToken->GetTypeID();
|
||||
if(((theTag==eHTMLTag_textarea) ||
|
||||
(theTag==eHTMLTag_xmp) ||
|
||||
(theTag==eHTMLTag_plaintext) ||
|
||||
(theTag==eHTMLTag_noscript)) && mRecordTrailingContent) {
|
||||
mRecordTrailingContent=PR_FALSE;
|
||||
}
|
||||
} //if
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user