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

@@ -5858,10 +5858,9 @@ public class Tokenizer implements Locator {
private void emitReplacementCharacter(@NoLength char[] buf, int pos)
throws SAXException {
silentCarriageReturn();
flushChars(buf, pos);
tokenHandler.characters(Tokenizer.REPLACEMENT_CHARACTER, 0, 1);
cstart = Integer.MAX_VALUE;
cstart = pos + 1;
}
private void setAdditionalAndRememberAmpersandLocation(char add) {