Skip to content

Commit 73a560c

Browse files
committed
Mozilla bug 1555523. r=alchen
1 parent 09ae4d1 commit 73a560c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/nu/validator/htmlparser/impl/Tokenizer.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3949,12 +3949,9 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
39493949
tokenHandler.characters(
39503950
Tokenizer.LT_SOLIDUS, 0, 2);
39513951
emitStrBuf();
3952-
if (c == '\u0000') {
3953-
emitReplacementCharacter(buf, pos);
3954-
} else {
3955-
cstart = pos; // don't drop the
3956-
// character
3957-
}
3952+
cstart = pos; // don't drop the
3953+
// character
3954+
reconsume = true;
39583955
state = transition(state, returnState, reconsume, pos);
39593956
continue stateloop;
39603957
}

0 commit comments

Comments
 (0)