Bug fix 2749 - Tweaked comment handling in quirks mode.
Bug fix 15992 - Line breaks within script and style were not getting counted
Related to bug 15423 - Rectified a glitch in Nav. DTD code where a doctype tag
was opening up a body.
Userdefined tags are now treated as containers.
Added Kipp's Leaky Tool
r=pollmann.
This commit is contained in:
@@ -792,7 +792,11 @@ nsresult ConsumeComment(PRUnichar aChar, nsScanner& aScanner,nsString& aString)
|
||||
while((kNotFound==findpos) && (NS_OK==result)) {
|
||||
result=aScanner.ReadUntil(aString,kGreaterThan,PR_TRUE);
|
||||
if(NS_OK==result){
|
||||
|
||||
aChar=aString.CharAt(aString.Length()-3);
|
||||
if(kMinus==aChar) {
|
||||
aChar=aString.CharAt(aString.Length()-2);
|
||||
if(kMinus==aChar) return result; // We have found the dflt end comment delimiter ("-->")
|
||||
}
|
||||
if(kNotFound==theBestAltPos) {
|
||||
const PRUnichar* theBuf=aString.GetUnicode();
|
||||
findpos=aString.Length()-3;
|
||||
@@ -1884,7 +1888,7 @@ const nsParserError * CErrorToken::GetError(void)
|
||||
|
||||
// Doctype decl token
|
||||
|
||||
CDoctypeDeclToken::CDoctypeDeclToken() : CHTMLToken(eHTMLTag_unknown) {
|
||||
CDoctypeDeclToken::CDoctypeDeclToken(eHTMLTags aTag) : CHTMLToken(aTag) {
|
||||
}
|
||||
|
||||
nsresult CDoctypeDeclToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode) {
|
||||
|
||||
Reference in New Issue
Block a user