Improve the <!DOCTYPE> parsing. b=363883 r=mrbkap sr=jst

git-svn-id: svn://10.0.0.236/trunk@226115 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net
2007-05-08 12:19:32 +00:00
parent 8f0221a243
commit e321f60278
2 changed files with 5 additions and 5 deletions

View File

@@ -1120,7 +1120,7 @@ nsHTMLTokenizer::ConsumeSpecialMarkup(PRUnichar aChar,
nsAutoString theBufCopy;
aScanner.Peek(theBufCopy, 20);
ToUpperCase(theBufCopy);
PRInt32 theIndex = theBufCopy.Find("DOCTYPE");
PRInt32 theIndex = theBufCopy.Find("DOCTYPE", PR_FALSE, 0, 0);
nsTokenAllocator* theAllocator = this->GetTokenAllocator();
if (theIndex == kNotFound) {