diff --git a/mozilla/parser/htmlparser/src/nsHTMLTokenizer.cpp b/mozilla/parser/htmlparser/src/nsHTMLTokenizer.cpp index 32fb8752ab3..3732b689385 100644 --- a/mozilla/parser/htmlparser/src/nsHTMLTokenizer.cpp +++ b/mozilla/parser/htmlparser/src/nsHTMLTokenizer.cpp @@ -793,17 +793,17 @@ nsresult nsHTMLTokenizer::ConsumeStartTag(PRUnichar aChar, if (NS_FAILED(result)) { aToken->SetInError(PR_TRUE); - // Note: We know here that the scanner is not incremental since if - // this peek fails, then we've already masked over a kEOF coming from - // the Consume() call above. - return NS_OK; - } - - if(kGreaterThan != aChar) { // Look for a '>' - result = ConsumeAttributes(aChar, aToken, aScanner); + // Don't return early here so we can create a text and end token for + // the special