Fix for:
37247 (nsbeta2+) - XIF DTD / HTMLContentSinkStream shouldn't add end tags for IMG,PARAM,SOUND,INPUT..etc., ( leaf tags ). r=akkana. 41427 (nsbeta2+) - Avoid transient style handling in a head context. 40408 (nsbeta2+) - Check for nsresult in nsFragmentContentSink::AddLeaf(). The HTMLTag array was,erroneously,going out-of-bounds for XMP tag. 40741 (nsbeta2+) - Text, only document, was getting sucked up into <!DOCTYPE> 40143 (nsbeta2+) - Use scanner's mIncremental memeber wisely when data is supplied through document.write(); 40552 (nsbeta2+) - Contain default <!DOCTYPE> to html documents only. r=rickg 30617 (nsbeta2+) - Misplaced AREA tag should be informed with base target info. r=vidur.
This commit is contained in:
@@ -2094,10 +2094,21 @@ CDoctypeDeclToken::CDoctypeDeclToken(eHTMLTags aTag) : CHTMLToken(aTag) {
|
||||
* @return
|
||||
*/
|
||||
nsresult CDoctypeDeclToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode) {
|
||||
|
||||
|
||||
nsresult result =NS_OK;
|
||||
|
||||
nsString& theBuffer=aScanner.GetBuffer();
|
||||
PRInt32 theCurrOffset=aScanner.GetOffset();
|
||||
PRInt32 thePos=(aScanner.GetBuffer()).FindChar(kLessThan,PR_TRUE,theCurrOffset);
|
||||
|
||||
mTextValue.AssignWithConversion("<!");
|
||||
|
||||
nsresult result=aScanner.ReadUntil(mTextValue,'<',PR_FALSE);
|
||||
|
||||
if(thePos>-1) {
|
||||
result=aScanner.ReadUntil(mTextValue,'<',PR_FALSE);
|
||||
}
|
||||
else {
|
||||
result=aScanner.ReadUntil(mTextValue,'>',PR_TRUE);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user