Bug 563526 - Ignore U+0000 in element content when the tree builder is not in the "text" mode or the "in foreign" mode. r=jonas.

This commit is contained in:
Henri Sivonen
2010-06-09 09:45:32 +03:00
parent b8c6cd4e34
commit 425934bd1a
5 changed files with 36 additions and 3 deletions

View File

@@ -3339,7 +3339,7 @@ void
nsHtml5Tokenizer::emitReplacementCharacter(PRUnichar* buf, PRInt32 pos)
{
flushChars(buf, pos);
tokenHandler->characters(nsHtml5Tokenizer::REPLACEMENT_CHARACTER, 0, 1);
tokenHandler->zeroOriginatingReplacementCharacter();
cstart = pos + 1;
}