Bug 535116 - EOF handling after <xmp>< in wrong in the HTML5 parser. rs=sicking.

--HG--
extra : rebase_source : 707323bc1dbdf085d202aa3a14914eb9e1f9a362
This commit is contained in:
Henri Sivonen 2009-12-16 14:14:02 +02:00
parent 23999745f4
commit e4f44ea018

View File

@ -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: {