summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-01-15 16:18:08 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-01-15 16:18:08 -0500
commit984790c6fbec732036cbcde302ab569cfc190038 (patch)
treee2d6b519453f8c0876475dfc8665d11e8774240e
parent6f27b4eb343c87ad0c2d880c4452eccd2d552f40 (diff)
downloadUXP-984790c6fbec732036cbcde302ab569cfc190038.tar
UXP-984790c6fbec732036cbcde302ab569cfc190038.tar.gz
UXP-984790c6fbec732036cbcde302ab569cfc190038.tar.lz
UXP-984790c6fbec732036cbcde302ab569cfc190038.tar.xz
UXP-984790c6fbec732036cbcde302ab569cfc190038.zip
Bug 1555523 (java htmlparser version)
-rw-r--r--parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java b/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java
index d9eaafeb3..70e1df75c 100644
--- a/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java
+++ b/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/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;
}