Bug 566280 - Text run prefixed by U+0000 shows only U+FFFD. r=sicking.

This commit is contained in:
Henri Sivonen
2010-05-27 16:08:19 +03:00
parent 7b5cf1ffc4
commit 89b94267e1
8 changed files with 9 additions and 4 deletions

View File

@@ -3338,10 +3338,9 @@ nsHtml5Tokenizer::emitCarriageReturn(PRUnichar* buf, PRInt32 pos)
void
nsHtml5Tokenizer::emitReplacementCharacter(PRUnichar* buf, PRInt32 pos)
{
silentCarriageReturn();
flushChars(buf, pos);
tokenHandler->characters(nsHtml5Tokenizer::REPLACEMENT_CHARACTER, 0, 1);
cstart = PR_INT32_MAX;
cstart = pos + 1;
}
void