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:
harishd@netscape.com
2000-06-08 21:30:48 +00:00
parent b88e9dccf8
commit ed0cb843d9
18 changed files with 172 additions and 42 deletions

View File

@@ -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;
}