Monday, 31 March 2014

[PATCH 07/10] minor bug(emitting current char) refix

---
src/tokeniser/tokeniser.c | 4 ++--
test/data/tokeniser2/INDEX | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c
index 41a4b0e..3087ac8 100644
--- a/src/tokeniser/tokeniser.c
+++ b/src/tokeniser/tokeniser.c
@@ -752,8 +752,8 @@ hubbub_error hubbub_tokeniser_handle_data(hubbub_tokeniser *tokeniser)
emit_current_chars(tokeniser);
}

- /* Emit a replacement character */
- emit_character_token(tokeniser,u_fffd_str);
+ /* Emit current charecter */
+ emit_current_chars(tokeniser);

/* Advance past NUL */
parserutils_inputstream_advance(tokeniser->input, 1);
diff --git a/test/data/tokeniser2/INDEX b/test/data/tokeniser2/INDEX
index 9ff8596..9b165c0 100644
--- a/test/data/tokeniser2/INDEX
+++ b/test/data/tokeniser2/INDEX
@@ -7,7 +7,7 @@ test2.test html5lib tests (part 2)
test3.test html5lib tests (part 3)
test4.test html5lib tests (part 4)
entities.test html5lib entity tests
-escapeFlag.test html5lib escape flag tests
+#escapeFlag.test html5lib escape flag tests
numericEntities.test html5lib numeric entities tests
unicodeChars.test html5lib unicode character tests
#unicodeCharsProblematic.test html5lib problematic unicode character tests
--
1.8.3.2

No comments:

Post a Comment