mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 14:47:31 +09:00
Bug 1555523.
This commit is contained in:
parent
d358080b7f
commit
80fc56fb93
2 changed files with 5 additions and 11 deletions
|
|
@ -3850,12 +3850,9 @@ public class Tokenizer implements Locator {
|
||||||
tokenHandler.characters(
|
tokenHandler.characters(
|
||||||
Tokenizer.LT_SOLIDUS, 0, 2);
|
Tokenizer.LT_SOLIDUS, 0, 2);
|
||||||
emitStrBuf();
|
emitStrBuf();
|
||||||
if (c == '\u0000') {
|
cstart = pos; // don't drop the
|
||||||
emitReplacementCharacter(buf, pos);
|
// character
|
||||||
} else {
|
reconsume = true;
|
||||||
cstart = pos; // don't drop the
|
|
||||||
// character
|
|
||||||
}
|
|
||||||
state = transition(state, returnState, reconsume, pos);
|
state = transition(state, returnState, reconsume, pos);
|
||||||
continue stateloop;
|
continue stateloop;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2093,11 +2093,8 @@ nsHtml5Tokenizer::stateLoop(int32_t state, char16_t c, int32_t pos, char16_t* bu
|
||||||
default: {
|
default: {
|
||||||
tokenHandler->characters(nsHtml5Tokenizer::LT_SOLIDUS, 0, 2);
|
tokenHandler->characters(nsHtml5Tokenizer::LT_SOLIDUS, 0, 2);
|
||||||
emitStrBuf();
|
emitStrBuf();
|
||||||
if (c == '\0') {
|
cstart = pos;
|
||||||
emitReplacementCharacter(buf, pos);
|
reconsume = true;
|
||||||
} else {
|
|
||||||
cstart = pos;
|
|
||||||
}
|
|
||||||
state = P::transition(mViewSource, returnState, reconsume, pos);
|
state = P::transition(mViewSource, returnState, reconsume, pos);
|
||||||
NS_HTML5_CONTINUE(stateloop);
|
NS_HTML5_CONTINUE(stateloop);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue