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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user