diff options
author | Henri Sivonen <hsivonen@hsivonen.fi> | 2019-07-20 15:23:12 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 15:23:12 +0200 |
commit | 697fba6f6df3c0def87a9547c17d4970b8a018cf (patch) | |
tree | 6b4bb753bbfb8ff2c77e8d652a1ba5d76bf74ad5 /parser | |
parent | a08fb2ee2ec9ca4f29c35cf40c46aedbc75bf465 (diff) | |
download | uxp-697fba6f6df3c0def87a9547c17d4970b8a018cf.tar.gz |
Bug 1555523.
Diffstat (limited to 'parser')
-rw-r--r-- | parser/html/javasrc/Tokenizer.java | 9 | ||||
-rw-r--r-- | parser/html/nsHtml5Tokenizer.cpp | 7 |
2 files changed, 5 insertions, 11 deletions
diff --git a/parser/html/javasrc/Tokenizer.java b/parser/html/javasrc/Tokenizer.java index d9eaafeb3e..70e1df75c1 100644 --- a/parser/html/javasrc/Tokenizer.java +++ b/parser/html/javasrc/Tokenizer.java @@ -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; } diff --git a/parser/html/nsHtml5Tokenizer.cpp b/parser/html/nsHtml5Tokenizer.cpp index a9db8d0c18..e70c081bf1 100644 --- a/parser/html/nsHtml5Tokenizer.cpp +++ b/parser/html/nsHtml5Tokenizer.cpp @@ -2093,11 +2093,8 @@ nsHtml5Tokenizer::stateLoop(int32_t state, char16_t c, int32_t pos, char16_t* bu default: { tokenHandler->characters(nsHtml5Tokenizer::LT_SOLIDUS, 0, 2); emitStrBuf(); - if (c == '\0') { - emitReplacementCharacter(buf, pos); - } else { - cstart = pos; - } + cstart = pos; + reconsume = true; state = P::transition(mViewSource, returnState, reconsume, pos); NS_HTML5_CONTINUE(stateloop); } |