ported upstream mozilla esr60 changes: bug1515052, bug1539219, bug1547757, bug1555523

This commit is contained in:
Roy Tam 2019-06-22 09:48:24 +08:00
commit bc81a6d5f5
12 changed files with 49 additions and 43 deletions

View file

@ -3850,12 +3850,9 @@ public class Tokenizer implements Locator {
tokenHandler.characters(
Tokenizer.LT_SOLIDUS, 0, 2);
emitStrBuf();
if (c == '\u0000') {
emitReplacementCharacter(buf, pos);
} else {
cstart = pos; // don't drop the
// character
}
cstart = pos; // don't drop the
// character
reconsume = true;
state = transition(state, returnState, reconsume, pos);
continue stateloop;
}