From b69e33b63ce38ec2ef84b056cbb7db8f93d1598a Mon Sep 17 00:00:00 2001 From: Henri Sivonen Date: Wed, 16 Dec 2009 14:14:02 +0200 Subject: [PATCH] Bug 535116 - EOF handling after < in wrong in the HTML5 parser. rs=sicking. --HG-- extra : rebase_source : 707323bc1dbdf085d202aa3a14914eb9e1f9a362 --- parser/html/nsHtml5Tokenizer.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/parser/html/nsHtml5Tokenizer.cpp b/parser/html/nsHtml5Tokenizer.cpp index f0a95f6d69a..f01346eb505 100644 --- a/parser/html/nsHtml5Tokenizer.cpp +++ b/parser/html/nsHtml5Tokenizer.cpp @@ -3460,13 +3460,14 @@ nsHtml5Tokenizer::eof() tokenHandler->characters(nsHtml5Tokenizer::LT_GT, 0, 1); goto eofloop_end; } + case NS_HTML5TOKENIZER_RAWTEXT_RCDATA_LESS_THAN_SIGN_STATE: { + tokenHandler->characters(nsHtml5Tokenizer::LT_GT, 0, 1); + goto eofloop_end; + } case NS_HTML5TOKENIZER_NON_DATA_END_TAG_NAME: { - if (index < contentModelElementNameAsArray.length) { - goto eofloop_end; - } else { - - goto eofloop_end; - } + tokenHandler->characters(nsHtml5Tokenizer::LT_SOLIDUS, 0, 2); + emitStrBuf(); + goto eofloop_end; } case NS_HTML5TOKENIZER_CLOSE_TAG_OPEN: {